“I see INFO in the GUI log widget, but not ERROR, WARNING, DEBUG, etc.”
# Run the diagnostic tool
python3 scripts/diagnose_log_filtering.py
# Inject test messages
python3 scripts/inject_test_messages.py
# Check the GUI log widget
log("Error occurred", level="error")
Check diagnostic output for these issues:
GUI Log Level: ERROR <- WRONG! Should be INFO
Fix: Edit config file:
[LOGGING]
level_gui = INFO
general [cats_gui_general] = DISABLED <- WRONG!
Fix: Edit config file:
[LOGGING]
cats_gui_general = true
ERROR in general (level=40): BLOCKED <- WRONG!
Fix: There’s a bug. Report this output.
Important: The GUI strips level prefixes before display!
This means:
"12:34:56 ERROR: Upload failed""12:34:56 Upload failed" <- No “ERROR:” visible!How to tell what level a message is:
show_log_level_gui = true in config# Wrong (defaults to INFO)
log("Upload failed")
# Correct (explicit ERROR level)
log("Upload failed", level="error")
The GUI strips these prefixes! Enable show_log_level_gui if you want them.
They’re probably showing, just without obvious visual indicators.
Messages pass the filter when:
log_level >= gui_level
With default gui_level = INFO (20):
Conclusion: If INFO shows, ERROR/WARNING MUST show too (unless categories are disabled).
~/.bbdrop/bbdrop.ini
[LOGGING]level_gui, cats_gui_*~/.bbdrop/logs/bbdrop.log
grep -rn 'level="error"' src/
[LOGGING]
cats_gui_general = true
cats_gui_network = true
cats_gui_uploads = true
cats_gui_auth = true
cats_gui_ui = true
cats_gui_queue = true
cats_gui_renaming = true
cats_gui_fileio = true
cats_gui_hooks = true
[LOGGING]
show_log_level_gui = true
show_category_gui = true
[LOGGING]
level_gui = DEBUG
# 1. Full diagnostic (shows config and tests)
python3 scripts/diagnose_log_filtering.py
# 2. Send test messages (verifies GUI receives them)
python3 scripts/inject_test_messages.py
# 3. Simple level tests
python3 scripts/test_log_levels.py
# 4. Find ERROR log calls in code
grep -rn 'level="error"' src/
# 5. Check config file
cat ~/.bbdrop/bbdrop.ini | grep -A 20 "\[LOGGING\]"
# 6. Check log file (last 50 lines)
tail -50 ~/.bbdrop/logs/bbdrop.log
90% chance: Your application isn’t logging ERROR or WARNING messages yet. The logging system works fine, but there are no errors to log.
8% chance: Category filters are blocking the messages.
2% chance: There’s an actual bug in the filtering logic.
Run the diagnostic to know for sure!