Fix: User login and server console logging functionality.

This commit is contained in:
2024-10-29 17:18:39 +00:00
parent 80c98708da
commit 03fc1bd421
5 changed files with 14 additions and 8 deletions

View File

@@ -36,5 +36,7 @@ class Helper_App(BaseModel):
@staticmethod
def console_log(message):
if current_app.config["DEBUG"]:
print(message)
if current_app.app_config.is_development:
print(message)
elif current_app.app_config.is_production:
current_app.logger.info(message)