Skip to content

Commit 6fd8dba

Browse files
style: use deferred string formatting in logger.warning
1 parent 5c8748e commit 6fd8dba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/google/adk/tools/function_tool.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ def _preprocess_args(
151151
)
152152
except Exception as e:
153153
logger.warning(
154-
f"Failed to convert argument '{param_name}' to Pydantic model"
155-
f' {target_type.__name__}: {e}'
154+
"Failed to convert argument '%s' to Pydantic model %s: %s",
155+
param_name,
156+
target_type.__name__,
157+
e,
156158
)
157159
continue
158160

0 commit comments

Comments
 (0)