set default level to info
This commit is contained in:
2
app.py
2
app.py
@@ -16,7 +16,7 @@ from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
# Parse log level from environment as early as possible, default to INFO for visibility
|
||||
log_level_str = os.getenv("LOG_LEVEL", "WARNING").upper()
|
||||
log_level_str = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
log_level = getattr(logging, log_level_str, logging.INFO)
|
||||
|
||||
# Set up a very basic logging config immediately, so early logs (including import/migration errors) are visible
|
||||
|
||||
Reference in New Issue
Block a user