From c9bd55b819a5315081587829f3585a0cbe650665 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 14 Mar 2009 23:34:49 +0000 Subject: [PATCH] Don't always log to file in Windows --- deluge/main.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/deluge/main.py b/deluge/main.py index 8770ac8d5..cae642449 100644 --- a/deluge/main.py +++ b/deluge/main.py @@ -90,14 +90,6 @@ def start_ui(): if not os.path.exists(deluge.common.get_default_config_dir()): os.makedirs(deluge.common.get_default_config_dir()) - # Always log to a file in Windows - if deluge.common.windows_check() and not options.logfile: - if options.config: - options.logfile = os.path.join(options.config, "deluge.log") - else: - config_dir = deluge.common.get_default_config_dir() - options.logfile = os.path.join(config_dir, "deluge.log") - # Setup the logger deluge.log.setupLogger(level=options.loglevel, filename=options.logfile) if options.logfile: