We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6848205 commit 8a5a67bCopy full SHA for 8a5a67b
patchwork/common/tools/api_tool.py
@@ -5,6 +5,7 @@
5
from typing_extensions import Literal
6
7
from patchwork.common.tools.tool import Tool
8
+from patchwork.logger import logger
9
10
11
class APIRequestTool(Tool, tool_name="make_api_request", abc_register=False):
@@ -93,6 +94,15 @@ def execute(
93
94
95
header_string = "\n".join(f"{key}: {value}" for key, value in headers.items())
96
97
+ msg = (
98
+ f"HTTP/{response.raw.version / 10:.1f} {status_code} {response.reason}\n"
99
+ f"{header_string}\n"
100
+ f"\n"
101
+ f"{response_text}"
102
+ )
103
+
104
+ logger.debug(msg)
105
106
return (
107
f"HTTP/{response.raw.version / 10:.1f} {status_code} {response.reason}\n"
108
f"{header_string}\n"
0 commit comments