mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-28 21:15:26 -05:00
logging improvements (#2073)
* Scheduled tasks log to Debug, not Info * Add LOG_LEVEL config to .env * Update some other log levels and fix typos * fix logger initializer --------- Co-authored-by: Jakob Rubin <647846+Grygon@users.noreply.github.com>
This commit is contained in:
@@ -87,7 +87,7 @@ def main():
|
||||
|
||||
alembic_cfg = Config(str(PROJECT_DIR / "alembic.ini"))
|
||||
if db_is_at_head(alembic_cfg):
|
||||
logger.info("Migration not needed.")
|
||||
logger.debug("Migration not needed.")
|
||||
else:
|
||||
logger.info("Migration needed. Performing migration...")
|
||||
command.upgrade(alembic_cfg, "head")
|
||||
@@ -95,7 +95,7 @@ def main():
|
||||
db = get_repositories(session)
|
||||
|
||||
if db.users.get_all():
|
||||
logger.info("Database exists")
|
||||
logger.debug("Database exists")
|
||||
else:
|
||||
logger.info("Database contains no users, initializing...")
|
||||
init_db(db)
|
||||
|
||||
Reference in New Issue
Block a user