We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09295f8 commit b2fb1f9Copy full SHA for b2fb1f9
tests/client/test_logging_callback.py
@@ -39,7 +39,7 @@ async def test_tool_with_log(
39
"""Send a log notification to the client."""
40
await server.get_context().log(
41
level=level,
42
- message=message,
+ data=message,
43
logger_name=logger,
44
)
45
return True
@@ -55,9 +55,12 @@ async def test_tool_with_log_extra(
55
"""Send a log notification to the client with extra fields."""
56
57
58
+ data={
59
+ "message": message,
60
+ "extra_string": extra_string,
61
+ "extra_dict": extra_dict,
62
+ },
63
- extra={"extra_string": extra_string, "extra_dict": extra_dict},
64
65
66
0 commit comments