diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index 8dc53925..a5268cf2 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -126,7 +126,7 @@ class Logger(object): if isinstance(handler, logging.FileHandler): handler.acquire() handler.stream.close() - handler.stream = open(handler.baseFileName, + handler.stream = open(handler.baseFilename, handler.mode) handler.release()