Skip to content

Commit b191f91

Browse files
isort and black
1 parent 26d8aa6 commit b191f91

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

datareservoirio/_logging.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import os
3-
from functools import lru_cache, wraps
43
import threading
4+
from functools import lru_cache, wraps
55

66
from azure.monitor.opentelemetry import configure_azure_monitor
77

@@ -10,18 +10,20 @@
1010
from ._constants import ENV_VAR_ENABLE_APP_INSIGHTS, ENV_VAR_ENGINE_ROOM_APP_ID
1111
from .globalsettings import environment
1212

13-
1413
_configure_lock = threading.Lock()
1514
_configured_loggers = {}
1615

16+
1717
def _ensure_azure_monitor_configured(connection_string, logger_name):
1818
cache_key = (connection_string, logger_name)
19-
19+
2020
if cache_key not in _configured_loggers:
2121
with _configure_lock:
2222
# Double-check locking
2323
if cache_key not in _configured_loggers:
24-
configure_azure_monitor(connection_string=connection_string, logger_name=logger_name)
24+
configure_azure_monitor(
25+
connection_string=connection_string, logger_name=logger_name
26+
)
2527
_configured_loggers[cache_key] = True
2628

2729

0 commit comments

Comments
 (0)