Permalink
Browse files

fixed traceback logging

  • Loading branch information...
1 parent 345949e commit 74be47faf9a43b2adc30e19152ec2259d4c22bb6 @Eugeny Eugeny committed Aug 6, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 ajenti-panel
View
@@ -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:

0 comments on commit 74be47f

Please sign in to comment.