Opened 14 years ago

Closed 14 years ago

Last modified 7 years ago

#1467 closed defect (Fixed)

Log to file when not daemonized

Reported by: Cameron Tacklind Owned by:
Priority: minor Milestone: 2.x
Component: Core Version: 1.3.1
Keywords: log, logfile Cc: Cameron Tacklind

Description

Deluged makes the assumption that when you tell it not to daemonize on startup, you don't want it to output to a log file. While this kinda makes sense if the default logfile is selected, explicitly setting a logfile in the command line arguments should not get overridden by the adjacent forgrounding (--do-not-daemonize) flag. Similarly, when --queit is used, it should not change the debug level that is going to the logfile, only what is sent to stdout.

This was the source of a lot of frustration because no matter what I did, deluged wouldn't create a log file. Turns out my distro's init script is set to daemonize/fork on it's own since it doesn't work if it lets deluged do it. Working on why now...

Change History (2)

comment:1 by s0undt3ch, 14 years ago

Milestone: Future1.4.0
Resolution: fixed
Status: newclosed

As it is now, ie, current deluge's master from git, if you pass a logfile and tell deluged not to daemonize, it correctly writes the log messages to the logfile and no output is sent to the console, except for deprecation warnings which use sys.stderr I believe, and those should be seen.

comment:2 by Calum, 7 years ago

Milestone: 2.0.x2.x

Milestone renamed

Note: See TracTickets for help on using tickets.