From 7d2d055f2596f80ec03217cde7410016a7dbf5f0 Mon Sep 17 00:00:00 2001 From: ShyPike Date: Sun, 27 Jun 2010 20:17:58 +0200 Subject: [PATCH] Prevent logging-exceptions from being logged. This should prevent infinite growth of the log file when the notorious Python logging bug raises its ugly head. --- SABnzbd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SABnzbd.py b/SABnzbd.py index 7064642..007db79 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -1018,6 +1018,10 @@ def main(): except: pass + # Prevent the logger from raising exceptions + # primarily to reduce the fallout of Python issue 4749 + logging.raiseExceptions = 0 + log_new = sabnzbd.cfg.log_new() if log_new: log_handler = NewRotatingFileHandler