mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix compatibility with python 2.6
This commit is contained in:
parent
df84d3d8fe
commit
4bb2925aa4
@ -381,7 +381,7 @@ class Logger(object):
|
|||||||
|
|
||||||
if output is not None:
|
if output is not None:
|
||||||
if output == "-":
|
if output == "-":
|
||||||
h = logging.StreamHandler(stream=stream)
|
h = logging.StreamHandler(stream)
|
||||||
else:
|
else:
|
||||||
util.check_is_writeable(output)
|
util.check_is_writeable(output)
|
||||||
h = logging.FileHandler(output)
|
h = logging.FileHandler(output)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user