Module: deluge Branch: master Commit: bc28b83062671c6851caaa36eabbe894f50c16e5
Author: John Garland <[email protected]> Date: Sun May 16 13:11:18 2010 +1000 Fix deluged crashing on windows when logfile's directory doesn't exist --- deluge/main.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/deluge/main.py b/deluge/main.py index e4da139..4b32e79 100644 --- a/deluge/main.py +++ b/deluge/main.py @@ -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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
