File tree Expand file tree Collapse file tree
src/ContentProcessorAPI/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class AppConfiguration(ModelBaseSettings):
3232 app_logging_enable : bool
3333 app_logging_level : str
3434
35+
3536# Read .env file
3637# Get Current Path + .env file
3738env_file_path = os .path .join (os .path .dirname (__file__ ), ".env" )
@@ -45,14 +46,15 @@ class AppConfiguration(ModelBaseSettings):
4546app_config = AppConfiguration ()
4647
4748if app_config .app_logging_enable :
48- # Read Configuration for Logging Level as a Text then retrive the logging level
49+ # Read Configuration for Logging Level as a Text then retrive the logging level
4950 logging_level = getattr (
5051 logging , app_config .app_logging_level
5152 )
5253 logging .basicConfig (level = logging_level )
5354else :
5455 logging .disable (logging .CRITICAL )
5556
57+
5658# Dependency Function
5759def get_app_config () -> AppConfiguration :
5860 return app_config
You can’t perform that action at this time.
0 commit comments