diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index e876aac87..f6793631c 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -377,9 +377,8 @@ def reopen_files(self): handler.acquire() try: if handler.stream: - handler.stream.close() - handler.stream = open(handler.baseFilename, - handler.mode) + handler.close() + handler.stream = handler._open() finally: handler.release()