File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
examples/pydantic_ai_ag_ui_examples/cli Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,18 @@ class Args:
20
20
def log_config (self ) -> dict [str , Any ]:
21
21
"""Return the logging configuration based on the log level."""
22
22
log_config : dict [str , Any ] = LOGGING_CONFIG .copy ()
23
- log_config ['loggers' ]['pydantic_ai_ag_ui.adapter' ] = {
24
- 'handlers' : ['default' ],
25
- 'level' : self .log_level .upper (),
26
- 'propagate' : False ,
27
- }
23
+ for logger in self .loggers :
24
+ log_config ['loggers' ][logger ] = {
25
+ 'handlers' : ['default' ],
26
+ 'level' : self .log_level .upper (),
27
+ 'propagate' : False ,
28
+ }
29
+
28
30
return log_config
29
31
30
32
31
33
def parse_args (
32
- loggers : tuple [str , ...] = tuple (
33
- 'pydantic_ai_ag_ui.adapter' ,
34
- ),
34
+ loggers : tuple [str , ...] = ('pydantic_ai_ag_ui.adapter' ,),
35
35
) -> Args :
36
36
"""Parse command line arguments for the PydanticAI AG-UI servers.
37
37
You can’t perform that action at this time.
0 commit comments