@@ -90,7 +90,7 @@ def _send_request(
9090 )
9191 raise e
9292 except httpx .RequestError as e :
93- logger .error ("Request failed: %s" , e , exc_info = DEBUG )
93+ logger .error (f "Request failed: { e } " , exc_info = DEBUG )
9494 raise e
9595
9696
@@ -283,7 +283,7 @@ def _fetch_events_pages(
283283
284284 def _do_full_sync (self ) -> None :
285285 """Perform a full sync with the remote API."""
286- logger .debug ("Performing full sync for conversation %s" , self ._conversation_id )
286+ logger .debug (f "Performing full sync for conversation { self ._conversation_id } " )
287287
288288 events , had_errors = self ._fetch_events_pages ()
289289
@@ -671,7 +671,7 @@ def __init__(
671671 from openhands .sdk .tool .registry import get_tool_module_qualnames
672672
673673 tool_qualnames = get_tool_module_qualnames ()
674- logger .debug ("Sending tool_module_qualnames to server: %s" , tool_qualnames )
674+ logger .debug (f "Sending tool_module_qualnames to server: { tool_qualnames } " )
675675 payload = {
676676 "agent" : agent .model_dump (
677677 mode = "json" , context = {"expose_secrets" : True }
@@ -852,9 +852,9 @@ def callback(event: Event) -> None:
852852 log_path = os .path .join (log_dir , event .filename )
853853 with open (log_path , "w" ) as f :
854854 f .write (event .log_data )
855- logger .debug ("Wrote LLM completion log to %s" , log_path )
855+ logger .debug (f "Wrote LLM completion log to { log_path } " )
856856 except Exception as e :
857- logger .warning ("Failed to write LLM completion log: %s" , e )
857+ logger .warning (f "Failed to write LLM completion log: { e } " )
858858
859859 return callback
860860
@@ -943,7 +943,7 @@ def run(
943943 if resp .status_code == 409 :
944944 logger .info ("Conversation is already running; skipping run trigger" )
945945 else :
946- logger .info ("run() triggered successfully: %s" , resp )
946+ logger .info (f "run() triggered successfully: { resp } " )
947947
948948 if blocking :
949949 self ._wait_for_run_completion (poll_interval , timeout )
@@ -1146,7 +1146,7 @@ def _handle_poll_exception(self, exc: Exception) -> None:
11461146 )
11471147 return
11481148 if isinstance (exc , httpx .RequestError ):
1149- logger .warning ("Error polling status (will retry): %s" , exc )
1149+ logger .warning (f "Error polling status (will retry): { exc } " )
11501150 return
11511151 raise ConversationRunError (self ._id , exc ) from exc
11521152
0 commit comments