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 dba67f9

Browse files
authored
Merge pull request #168 from mz-ko/master
test: add debug code for grpcclient.
2 parents 828335a + 01a9872 commit dba67f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
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:

0 commit comments

Comments
(0)

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