mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
Fix deluged crashing on windows when logfile's directory doesn't exist
This commit is contained in:
parent
2603c36e7d
commit
bc28b83062
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue