Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions backend/src/acidwatch_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
level=logging.INFO,
)

# These SDKs log routine request/response and transmission chatter at INFO,
# which is noisy in production. Keep root at INFO for app/uvicorn logs, but
# quiet these specific third-party loggers down to WARNING.
_NOISY_LOGGERS = [
"azure.core.pipeline.policies.http_logging_policy",
"azure.monitor.opentelemetry.exporter",
"azure.identity",
"httpx",
"httpcore",
]
for _logger_name in _NOISY_LOGGERS:
logging.getLogger(_logger_name).setLevel(logging.WARNING)


tracer = trace.get_tracer(__name__, tracer_provider=get_tracer_provider())

Expand Down
Loading