Skip to content

Commit 59f431e

Browse files
committed
🔧 Configure logging levels for httpcore and httpx to INFO in main.py
1 parent 38ed8e1 commit 59f431e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dashboard-api/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
coloredlogs.install(level="DEBUG")
1919
logger = logging.getLogger(__name__)
2020

21+
# Configure httpcore and httpx loggers to INFO level
22+
logging.getLogger("httpcore").setLevel(logging.INFO)
23+
logging.getLogger("httpx").setLevel(logging.INFO)
24+
2125
app = FastAPI(
2226
title="Dashboard Backend API",
2327
description="Dashboard backend that orchestrates DSS F1 (Energy Optimization) tool access via connectors",

0 commit comments

Comments
 (0)