Skip to content

Commit 950bfc5

Browse files
committed
Enabled INFO logging by default
The `LoggingConfig` will now create a default root logger that has `INFO` enabled and `INFO` is passed to `logging.basicConfig()`, so user can at least see `INFO` messages during initialization. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent de2dff6 commit 950bfc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frequenz/sdk/config/_logging_actor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class LoggingConfig:
4646
"""A configuration for the logging system."""
4747

4848
root_logger: LoggerConfig = field(
49-
default_factory=LoggerConfig,
49+
default_factory=lambda: LoggerConfig(level="INFO"),
5050
metadata={
5151
"metadata": {
5252
"description": "Default default configuration for all loggers.",
@@ -147,6 +147,7 @@ def __init__(
147147
logging.basicConfig(
148148
format=log_format,
149149
datefmt=log_datefmt,
150+
level=logging.INFO,
150151
)
151152
self._update_logging(self._current_config)
152153

0 commit comments

Comments
 (0)