Do not set sys.stdout,err and stdin to None if logfile is used
This commit is contained in:
parent
7fb09d922a
commit
4b711883cb
|
@ -194,10 +194,6 @@ def start_daemon():
|
||||||
|
|
||||||
# Setup the logger
|
# Setup the logger
|
||||||
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
deluge.log.setupLogger(level=options.loglevel, filename=options.logfile)
|
||||||
if options.logfile:
|
|
||||||
sys.stdout = None
|
|
||||||
sys.stderr = None
|
|
||||||
sys.stdin = None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from deluge.core.daemon import Daemon
|
from deluge.core.daemon import Daemon
|
||||||
|
|
Loading…
Reference in New Issue