File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 16
16
from py_spring_core .event .commons import ApplicationEvent
17
17
from py_spring_core .event .application_event_handler_registry import EventListener
18
18
19
- __version__ = "0.0.16 "
19
+ __version__ = "0.0.17 "
20
20
21
21
__all__ = [
22
22
"PySpringApplication" ,
Original file line number Diff line number Diff line change @@ -216,8 +216,7 @@ def __init_controllers(self) -> None:
216
216
217
217
def __configure_uvicorn_logging (self ):
218
218
"""Configure Uvicorn to use Loguru instead of default logging."""
219
-
220
-
219
+ # Configure Uvicorn to use Loguru
221
220
# Intercept standard logging and redirect to loguru
222
221
class InterceptHandler (logging .Handler ):
223
222
def emit (self , record ):
@@ -236,10 +235,11 @@ def emit(self, record):
236
235
logger .opt (depth = depth , exception = record .exc_info ).log (level , record .getMessage ())
237
236
238
237
# Remove default uvicorn logger and add intercept handler
239
- logging .basicConfig (handlers = [InterceptHandler ()], level = 0 , force = True )
238
+ log_level = self .app_config .loguru_config .log_level .value
239
+ logging .basicConfig (handlers = [InterceptHandler ()], level = log_level , force = True )
240
240
241
241
def __run_server (self ) -> None :
242
- # Configure Uvicorn to use Loguru
242
+
243
243
244
244
245
245
# Run uvicorn server
You can’t perform that action at this time.
0 commit comments