Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee511ed

Browse files
mz-koMZC01-HYUPKO
authored and
MZC01-HYUPKO
committed
test: add debug code for grpcclient.
Signed-off-by: MZC01-HYUPKO <mzc01-hyupko@MZC01-HYUPKO.local>
1 parent 828335a commit ee511ed

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/spaceone/core/pygrpc/client.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ def _retry_call(
111111

112112
while True:
113113
try:
114+
_LOGGER.debug(f"client._retry_call.start!!!")
114115
response_or_iterator = continuation(
115116
client_call_details, request_or_iterator
116117
)
118+
_LOGGER.debug(f"client._retry_call.response_or_iterator Success!!!")
117119

118120
if is_stream:
119121
response_or_iterator = self._generate_response(response_or_iterator)
@@ -123,7 +125,11 @@ def _retry_call(
123125
return response_or_iterator
124126

125127
except Exception as e:
128+
_LOGGER.debug(f"client._retry_call.Exception: {e}")
126129
if e.error_code == "ERROR_GRPC_CONNECTION":
130+
_LOGGER.debug(
131+
f"client._retry_call.retry_call: {retries} || _MAX_RETRIES: {_MAX_RETRIES}"
132+
)
127133
if retries >= _MAX_RETRIES:
128134
channel = e.meta.get("channel")
129135
if channel in _GRPC_CHANNEL:
@@ -160,7 +166,9 @@ def _intercept_call(
160166
is_response_stream,
161167
)
162168

163-
def intercept_unary_unary(self, continuation, client_call_details, request):
169+
def intercept_unary_unary(
170+
self, continuation: object, client_call_details: object, request: object
171+
) -> object:
164172
return self._intercept_call(
165173
continuation, client_call_details, request, False, False
166174
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /