From a9c0df778cb27d03189a05a965ff016e03d42306 Mon Sep 17 00:00:00 2001 From: Tim O'Farrell Date: Wed, 25 Feb 2026 12:11:13 +0000 Subject: [PATCH] Make logs quieter. (#13042) --- .../live_status_app_conversation_service.py | 16 +++++++--------- openhands/core/logger.py | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/openhands/app_server/app_conversation/live_status_app_conversation_service.py b/openhands/app_server/app_conversation/live_status_app_conversation_service.py index b7edac10d0..61ec63b15b 100644 --- a/openhands/app_server/app_conversation/live_status_app_conversation_service.py +++ b/openhands/app_server/app_conversation/live_status_app_conversation_service.py @@ -417,15 +417,13 @@ class LiveStatusAppConversationService(AppConversationServiceBase): conversation_info = _conversation_info_type_adapter.validate_python(data) conversation_info = [c for c in conversation_info if c] return conversation_info - except httpx.HTTPStatusError as exc: - # The runtime API stops idle sandboxes all the time and they return a 503. - # This is normal and should not be logged. - if not exc.response or exc.response.status_code != 503: - _logger.exception( - f'Error getting conversation status from sandbox {sandbox.id}', - exc_info=True, - stack_info=True, - ) + except httpx.HTTPStatusError: + # The runtime API stops idle sandboxes all the time and they return a 404 or a 503. + # This is normal and should not be considered an error. + _logger.warning( + f'Error getting conversation status from sandbox {sandbox.id}', + exc_info=True, + ) return [] except Exception: # Not getting a status is not a fatal error - we just mark the conversation as stopped diff --git a/openhands/core/logger.py b/openhands/core/logger.py index 6e9f8c2552..75ffde4d05 100644 --- a/openhands/core/logger.py +++ b/openhands/core/logger.py @@ -431,7 +431,7 @@ LOQUACIOUS_LOGGERS = [ 'socketio.client', 'socketio.server', 'aiosqlite', - 'alembic.runtime.plugins.setup', + 'alembic.runtime.plugins', ] for logger_name in LOQUACIOUS_LOGGERS: