Skip to content
Snippets Groups Projects
Unverified Commit c8ce5f85 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

fixup! fixup! Reduce severity of httpx logs to info

parent f960196f
No related branches found
No related tags found
No related merge requests found
Pipeline #547573 failed
......@@ -75,12 +75,6 @@ def configure_logging():
cache_logger_on_first_use=True,
)
def drop_http_debug(_, __, event_dict):
if event_dict.get("logger") == "httpcore":
if event_dict.get("level") == "debug":
raise structlog.DropEvent
return event_dict
def add_extra(_, __, event_dict):
# currently nop
return event_dict
......@@ -94,7 +88,6 @@ def configure_logging():
structlog.stdlib.add_logger_name,
structlog.stdlib.PositionalArgumentsFormatter(),
add_extra,
drop_http_debug,
structlog.processors.StackInfoRenderer(),
# Remove _record & _from_structlog.
structlog.stdlib.ProcessorFormatter.remove_processors_meta,
......@@ -121,6 +114,8 @@ def configure_logging():
# Too verbose for us
ws_logger = logging.getLogger("websockets.client")
ws_logger.setLevel(logging.INFO)
httpcore_logger = logging.getLogger("httpcore")
httpcore_logger.setLevel(logging.INFO)
http_logger = logging.getLogger("http.server")
http_logger.addHandler(handler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment