We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 489b7f8 + 81e613a commit 8489d5eCopy full SHA for 8489d5e
3 files changed
volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py
@@ -1,3 +1,4 @@
1
+# coding: utf-8
2
import json
3
4
from volcenginesdkcore.signv4 import SignerV4
volcenginesdkcore/observability/debugger.py
@@ -220,13 +220,15 @@ def debug_retry(self, msg, *args, **kwargs):
220
def debug_config(self, msg, *args, **kwargs):
221
self.debugx(LogLevel.LOG_DEBUG_WITH_CONFIG, "[Config] " + msg, *args, **kwargs)
222
223
- def debug_request(self, msg, *args, is_body=False, **kwargs):
+ def debug_request(self, msg, *args, **kwargs):
224
+ is_body = kwargs.pop('is_body', False)
225
if is_body:
226
self.debugx(LogLevel.LOG_DEBUG_WITH_REQUEST_BODY, "[Request] " + msg, *args, **kwargs)
227
else:
228
self.debugx(LogLevel.LOG_DEBUG_WITH_REQUEST, "[Request] " + msg, *args, **kwargs)
229
- def debug_response(self, msg, *args, is_body=False, **kwargs):
230
+ def debug_response(self, msg, *args, **kwargs):
231
232
233
self.debugx(LogLevel.LOG_DEBUG_WITH_RESPONSE_BODY, "[Response] " + msg, *args, **kwargs)
234
volcenginesdkcore/retryer/retryer.py
@@ -1,5 +1,8 @@
# coding: utf-8
-from typing import TYPE_CHECKING
+try:
+ from typing import TYPE_CHECKING
+except ImportError:
5
+ TYPE_CHECKING = False
6
from volcenginesdkcore.retryer.backoff_strategy import ExponentialWithRandomJitterBackoffStrategy
7
from volcenginesdkcore.retryer.retry_condition import DefaultRetryCondition
8
0 commit comments