Commit c3ecd085 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Filter alive request from logstash handler.

parent 0a5077df
Pipeline #68519 passed with stages
in 19 minutes and 38 seconds
......@@ -144,6 +144,9 @@ class LogstashHandler(logstash.TCPLogstashHandler):
legacy_logger = None
def filter(self, record):
if record.name == 'gunicorn.access' and 'alive' in record.args.get('r', ''):
return False
if super().filter(record):
is_structlog = False
if isinstance(record.msg, str):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment