mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 21:44:28 +00:00
Fix deluged crashing on windows when logfile's directory doesn't exist
This commit is contained in:
parent
5e0d988ef0
commit
821d403a6c
@ -197,6 +197,11 @@ this should be an IP address", metavar="IFACE",
|
|||||||
write_pidfile()
|
write_pidfile()
|
||||||
|
|
||||||
# Setup the logger
|
# Setup the logger
|
||||||
|
try:
|
||||||
|
# Try to make the logfile's directory if it doesn't exist
|
||||||
|
os.makedirs(os.path.abspath(os.path.dirname(options.logfile)))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user