mirror of
https://github.com/smittix/intercept.git
synced 2026-07-05 16:18:12 -07:00
Fix duplicate log messages and suppress SBS reconnection spam
- Add propagate=False to prevent child loggers from duplicating messages through parent handler - Only log SBS connection errors once until successful reconnect Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,7 @@ def get_logger(name: str) -> logging.Logger:
|
||||
handler.setFormatter(logging.Formatter(LOG_FORMAT))
|
||||
logger.addHandler(handler)
|
||||
logger.setLevel(LOG_LEVEL)
|
||||
logger.propagate = False # Prevent duplicate logs from parent handlers
|
||||
return logger
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user