Permalink
Browse files

* Disable logging when run under wsgi

  • Loading branch information...
1 parent 3f70376 commit c92004afd9b14b35463f146e80262aa255764d50 @breily committed Feb 23, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 juno.py
View
@@ -95,8 +95,10 @@ def run(self, mode=None):
if mode == 'dev': run_dev('', self.config['dev_port'], self.request)
elif mode == 'scgi': run_scgi('', self.config['scgi_port'], self.request)
elif mode == 'fcgi': run_fcgi('', self.config['fcgi_port'], self.request)
- elif mode == 'wsgi': return run_wsgi(self.request)
- elif self.config['log']:
+ elif mode == 'wsgi':
+ self.config['log'] = False
+ return run_wsgi(self.request)
+ elif:
print >>sys.stderr, 'error: mode must be scgi, fcgi, wsgi, or dev'
print >>sys.stderr, 'exiting juno...'

0 comments on commit c92004a

Please sign in to comment.