From a8b3f721c985628f9b49ea7663eed7b84d603a35 Mon Sep 17 00:00:00 2001 From: Safihre Date: Sun, 25 Dec 2016 09:19:59 +0100 Subject: [PATCH] Fix cherrypy_logging Closes #758 --- SABnzbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SABnzbd.py b/SABnzbd.py index e21807e..fb1874c 100755 --- a/SABnzbd.py +++ b/SABnzbd.py @@ -1314,7 +1314,7 @@ def main(): if logdir: sabnzbd.WEBLOGFILE = os.path.join(logdir, DEF_LOG_CHERRY) # Define our custom logger for cherrypy errors - cherrypy_logging(sabnzbd.WEBLOGFILE, log_handler) + cherrypy_logging(sabnzbd.WEBLOGFILE, logging.handlers.RotatingFileHandler) if not fork: try: x = sys.stderr.fileno