mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Don't always log to file in Windows
This commit is contained in:
parent
ec72ac57d7
commit
027dd7bcef
1 changed files with 0 additions and 8 deletions
|
@ -90,14 +90,6 @@ def start_ui():
|
||||||
if not os.path.exists(deluge.common.get_default_config_dir()):
|
if not os.path.exists(deluge.common.get_default_config_dir()):
|
||||||
os.makedirs(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
|
# Setup the logger
|
||||||
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
||||||
if options.logfile:
|
if options.logfile:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue