Files
nfoguard/SUMMARY.md
T

88 lines
2.8 KiB
Markdown

# NFOGuard Development Summary
## Current Status: v1.5.1 - Debug Logging Fix Applied! 🔇
### Latest Updates (v1.5.1)
- **🔇 DEBUG RESPECT**: Added conditional debug logging function
- **✅ CLEAN LOGS**: Debug statements now respect DEBUG=false environment variable
- **🧹 PRODUCTION**: Verbose logging should be eliminated with DEBUG=false
- **🎯 CONDITIONAL**: Debug output only when explicitly enabled
### Debug Logging Fix
**Added conditional debug function:**
```python
def debug_log(message):
"""Only log debug messages if DEBUG environment variable is true"""
if os.getenv('DEBUG', 'false').lower() == 'true':
logging.getLogger().debug(message)
```
### Expected Clean Production Logs
**With DEBUG=false, you should now see:**
```
INFO: Received Radarr webhook: Download
INFO: Batched movie webhook for movie:tt8350360
INFO: Processing movie: Annabelle Comes Home (2019) [tt8350360]
INFO: Completed movie processing
```
**No more verbose output like:**
```
❌ DEBUG: Full Radarr webhook payload: {...}
❌ DEBUG: Mapped Radarr path /mnt/unionfs/... -> /media/...
❌ DEBUG: Adding Radarr webhook to batch: key=movie:...
❌ DEBUG: Batch added - key: movie:...
```
### Debug Configuration
**Your .env now has:**
```bash
DEBUG=false # Clean production logs
PATH_DEBUG=false # No path mapping debug
```
### Clean Production Logs
**With DEBUG=false you should see:**
```
INFO: Received Radarr webhook: Download
INFO: Batched movie webhook for movie:tt8350360
INFO: Processing movie: Annabelle Comes Home (2019) [tt8350360]
INFO: Completed movie processing: Annabelle Comes Home (2019) [tt8350360]
```
**Instead of the verbose:**
```
DEBUG: Full Radarr webhook payload: {...massive payload...}
DEBUG: Mapped Radarr path /mnt/unionfs/... -> /media/...
DEBUG: Adding Radarr webhook to batch: key=movie:...
```
### Production Status
-**Path Mapping**: Working perfectly (movies/movies6, tv/tv6)
-**Movie Webhooks**: Processing and creating NFO files
-**TV Webhooks**: Episode processing functional
-**NFO Management**: Content preservation with bottom field placement
-**Database**: Clean episode and movie tracking
-**Logging**: Production-appropriate minimal output
### Final Configuration Summary
```bash
# Working paths:
MOVIE_PATHS=/media/Movies/movies,/media/Movies/movies6
TV_PATHS=/media/TV/tv,/media/TV/tv6
RADARR_ROOT_FOLDERS=/mnt/unionfs/Media/Movies/movies,/mnt/unionfs/Media/Movies/movies6
SONARR_ROOT_FOLDERS=/mnt/unionfs/Media/TV/tv,/mnt/unionfs/Media/TV/tv6
# Production logging:
DEBUG=false
PATH_DEBUG=false
```
## 🎉 NFOGuard v1.5.0 - Fully functional and production-ready! 🎉
### Restart to apply clean logging:
```bash
docker compose restart
```
## 🔇 NFOGuard v1.5.1 - Clean production logs with DEBUG=false! 🔇