We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb4944 commit b40c45fCopy full SHA for b40c45f
1 file changed
src/ContentProcessorAPI/app/appsettings.py
@@ -45,14 +45,15 @@ class AppConfiguration(ModelBaseSettings):
45
app_config = AppConfiguration()
46
47
if app_config.app_logging_enable:
48
-# Read Configuration for Logging Level as a Text then retrive the logging level
+ # Read Configuration for Logging Level as a Text then retrive the logging level
49
logging_level = getattr(
50
logging, app_config.app_logging_level
51
)
52
logging.basicConfig(level=logging_level)
53
else:
54
logging.disable(logging.CRITICAL)
55
56
+
57
# Dependency Function
58
def get_app_config() -> AppConfiguration:
59
return app_config
0 commit comments