Skip to content

Commit 259df4b

Browse files
author
Vansh Kalra
committed
Fixes: feedback changes:
- Reverted to logging.WARNING for dev env - assert the health-check was awaited with DOCUMENT_MODELS
1 parent c425c8f commit 259df4b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

state-manager/app/singletons/logs_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self):
3737

3838
if is_development:
3939
# In development mode, set level to WARNING to disable INFO logs
40-
logger.setLevel(logging.INFO)
40+
logger.setLevel(logging.WARNING)
4141
else:
4242
# In production mode, keep INFO level
4343
logger.setLevel(logging.INFO)

state-manager/tests/unit/test_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async def test_lifespan_startup_success(self, mock_health_check, mock_mongo_clie
141141
mock_init_beanie.assert_called()
142142
mock_logger.info.assert_any_call("beanie dbs initialized")
143143
mock_logger.info.assert_any_call("secret initialized")
144+
mock_health_check.assert_awaited_once_with(app_main.DOCUMENT_MODELS)
144145

145146
# After context manager exits (shutdown)
146147
mock_logger.info.assert_any_call("server stopped")

0 commit comments

Comments
 (0)