mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fix deluged crashing on windows when logfile's directory doesn't exist
This commit is contained in:
parent
5e0d988ef0
commit
821d403a6c
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,11 @@ this should be an IP address", metavar="IFACE",
|
|||
write_pidfile()
|
||||
|
||||
# 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)
|
||||
from deluge.log import LOG as log
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue