diff --git a/gunicorn/glogging.py b/gunicorn/glogging.py index f1e5a0d4..cb39471f 100644 --- a/gunicorn/glogging.py +++ b/gunicorn/glogging.py @@ -141,7 +141,7 @@ class Logger(object): def _get_gunicorn_handler(self, log): for h in log.handlers: - if getattr(h, "_gunicorn") == True: + if getattr(h, "_gunicorn", False) == True: return h def _set_handler(self, log, output, fmt):