From 7c967f1d31d2d1ecacab89d80c3cc6c976dfe3af Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 17 Sep 2024 07:21:40 +0200 Subject: [PATCH] Fix example to use pydantic 2 method. (#170) --- src/antsibull_core/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/antsibull_core/logging.py b/src/antsibull_core/logging.py index 8bd817a..6dc3a45 100644 --- a/src/antsibull_core/logging.py +++ b/src/antsibull_core/logging.py @@ -194,7 +194,7 @@ def run(args): # the log is output as. See the twiggy documentation for information on the format of # the logging config. See the antsibull.app_context documentation if you want more # information on the context object. - twiggy.dict_config(app_ctx.logging_cfg.dict()) + twiggy.dict_config(app_ctx.logging_cfg.model_dump()) Once those steps are taken, any further logging calls will obey the user's configuration.