Make logs quieter. (#13042)

This commit is contained in:
Tim O'Farrell
2026-02-25 12:11:13 +00:00
committed by GitHub
parent 51b989b5f8
commit a9c0df778c
2 changed files with 8 additions and 10 deletions

View File

@@ -417,15 +417,13 @@ class LiveStatusAppConversationService(AppConversationServiceBase):
conversation_info = _conversation_info_type_adapter.validate_python(data) conversation_info = _conversation_info_type_adapter.validate_python(data)
conversation_info = [c for c in conversation_info if c] conversation_info = [c for c in conversation_info if c]
return conversation_info return conversation_info
except httpx.HTTPStatusError as exc: except httpx.HTTPStatusError:
# The runtime API stops idle sandboxes all the time and they return a 503. # The runtime API stops idle sandboxes all the time and they return a 404 or a 503.
# This is normal and should not be logged. # This is normal and should not be considered an error.
if not exc.response or exc.response.status_code != 503: _logger.warning(
_logger.exception( f'Error getting conversation status from sandbox {sandbox.id}',
f'Error getting conversation status from sandbox {sandbox.id}', exc_info=True,
exc_info=True, )
stack_info=True,
)
return [] return []
except Exception: except Exception:
# Not getting a status is not a fatal error - we just mark the conversation as stopped # Not getting a status is not a fatal error - we just mark the conversation as stopped

View File

@@ -431,7 +431,7 @@ LOQUACIOUS_LOGGERS = [
'socketio.client', 'socketio.client',
'socketio.server', 'socketio.server',
'aiosqlite', 'aiosqlite',
'alembic.runtime.plugins.setup', 'alembic.runtime.plugins',
] ]
for logger_name in LOQUACIOUS_LOGGERS: for logger_name in LOQUACIOUS_LOGGERS: