File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,8 @@ async def log_requests_responses(
75
75
) -> Response :
76
76
"""Middleware for logging of HTTP requests and responses, at debug level."""
77
77
# Bail out early if not logging or Prometheus metrics logging is suppressed
78
- if (
79
- not logger .isEnabledFor (logging .DEBUG )
80
- or config .ols_config .logging_config .suppress_metrics_in_log
78
+ if not logger .isEnabledFor (logging .DEBUG ) or (
79
+ config .ols_config .logging_config .suppress_metrics_in_log
81
80
and request .url .path == "/metrics"
82
81
):
83
82
return await call_next (request )
Original file line number Diff line number Diff line change 8
8
from redis .backoff import ExponentialBackoff
9
9
from redis .exceptions import (
10
10
BusyLoadingError ,
11
- ConnectionError ,
11
+ ConnectionError , # noqa: A004
12
12
RedisError ,
13
13
)
14
14
from redis .retry import Retry
You can’t perform that action at this time.
0 commit comments