diff --git a/comet/utils/db.py b/comet/utils/db.py index f684e6b..96a980c 100644 --- a/comet/utils/db.py +++ b/comet/utils/db.py @@ -26,8 +26,7 @@ async def teardown_database(): try: await database.disconnect() except Exception as e: - # Log the exception or handle it as needed - print(f"Error tearing down the database: {e}") + logger.error(f"Error tearing down the database: {e}") def write_config(): """Write the config file."""