Browse Source

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.
tags/0.6.0
ShyPike 15 years ago
parent
commit
7d2d055f25
  1. 4
      SABnzbd.py

4
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

Loading…
Cancel
Save