Permalink
Browse files

simplify the code

  • Loading branch information...
1 parent d6012fa commit 961eabb3326f2076a346413a2506d38273ad4bc8 @benoitc benoitc committed Mar 16, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −0 examples/test.py
  2. +1 −3 gunicorn/glogging.py
View
@@ -21,5 +21,6 @@ def app(environ, start_response):
('Content-Length', str(len(data))),
('X-Gunicorn-Version', __version__)
]
+
start_response(status, response_headers)
return iter([data])
View
@@ -107,9 +107,7 @@ def setup(self, cfg):
if cfg.errorlog != "-":
# if an error log file is set redirect stdout & stderr to
# this log file.
- stdout_log = LazyWriter(cfg.errorlog, 'a')
- sys.stdout = stdout_log
- sys.stderr = stdout_log
+ sys.stdout = sys.stderr = LazyWriter(cfg.errorlog, 'a')
# set gunicorn.error handler
self._set_handler(self.error_log, cfg.errorlog,

0 comments on commit 961eabb

Please sign in to comment.