mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 10:13:05 +00:00
dont reinstantiate background logger
This commit is contained in:
parent
194d12b304
commit
006df17fd6
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ class TraceContext:
|
|||
def setup_logger(api: Telemetry, level: int = logging.INFO):
|
||||
global BACKGROUND_LOGGER
|
||||
|
||||
BACKGROUND_LOGGER = BackgroundLogger(api)
|
||||
if BACKGROUND_LOGGER is None:
|
||||
BACKGROUND_LOGGER = BackgroundLogger(api)
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(level)
|
||||
logger.addHandler(TelemetryHandler())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue