Skip to content

Commit

Permalink
fixed traceback logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 6, 2014
1 parent 345949e commit 74be47f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ajenti-panel
Expand Up @@ -112,10 +112,11 @@ if __name__ == '__main__':

if is_daemon:
ajenti.log.init_log_directory()
logfile = open(ajenti.log.LOG_FILE, 'w+')
context = daemon.DaemonContext(
pidfile=PidFile('/var/run/ajenti.pid'),
stdout=open(ajenti.log.LOG_FILE, 'w+'),
stderr=open(ajenti.log.LOG_FILE, 'w+'),
stdout=logfile,
stderr=logfile,
detach_process=True
)
with context:
Expand Down

0 comments on commit 74be47f

Please sign in to comment.