Skip to content

Commit c10472e

Browse files
committed
fix: set logging levels for stdout and file handlers in logger configuration
1 parent 70c1f0f commit c10472e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adf_core_python/core/logger/logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def configure_logger() -> None:
6969
handler_stdout.setFormatter(
7070
structlog.stdlib.ProcessorFormatter(processor=ConsoleRenderer())
7171
)
72+
handler_stdout.setLevel(logging.INFO)
7273

7374
handler_file = RotatingFileHandler(
7475
"agent.log", maxBytes=10 * 1024 * 1024, backupCount=5
@@ -77,6 +78,7 @@ def configure_logger() -> None:
7778
handler_file.setFormatter(
7879
structlog.stdlib.ProcessorFormatter(processor=JSONRenderer())
7980
)
81+
handler_file.setLevel(logging.DEBUG)
8082

8183
root_logger = logging.getLogger()
8284
root_logger.addHandler(handler_stdout)

0 commit comments

Comments
 (0)