Skip to content

Commit 5920870

Browse files
committed
Minor code style
1 parent bf57538 commit 5920870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AppConfig(BaseSettings):
2828
DEBUG: bool = False
2929

3030

31-
def init_logger(config: AppConfig):
31+
def init_logger(config: AppConfig) -> None:
3232
"""
3333
Configure structlog and stdlib logging with shared handler and formatter.
3434
@@ -43,7 +43,7 @@ def init_logger(config: AppConfig):
4343
structlog.stdlib.PositionalArgumentsFormatter(),
4444
structlog.processors.add_log_level,
4545
structlog.processors.StackInfoRenderer(),
46-
add_logging_open_telemetry_spans,
46+
_add_logging_open_telemetry_spans,
4747
]
4848

4949
log_level = logging.DEBUG if config.DEBUG else logging.INFO
@@ -94,7 +94,7 @@ def init_logger(config: AppConfig):
9494
logging.getLogger(_log).propagate = True
9595

9696

97-
def add_logging_open_telemetry_spans(_, __, event_dict):
97+
def _add_logging_open_telemetry_spans(_, __, event_dict):
9898
span = trace.get_current_span()
9999
if not span.is_recording():
100100
event_dict["span"] = None

0 commit comments

Comments
 (0)