Skip to content

Commit b867cea

Browse files
Update appsettings.py
1 parent 0068eba commit b867cea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ContentProcessorAPI/app/appsettings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3738
env_file_path = os.path.join(os.path.dirname(__file__), ".env")
@@ -45,14 +46,15 @@ class AppConfiguration(ModelBaseSettings):
4546
app_config = AppConfiguration()
4647

4748
if 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)
5354
else:
5455
logging.disable(logging.CRITICAL)
5556

57+
5658
# Dependency Function
5759
def get_app_config() -> AppConfiguration:
5860
return app_config

0 commit comments

Comments
 (0)