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 828335a

Browse files
authored
Merge pull request #167 from mz-ko/master
test: rollback loggers
2 parents 8d467bf + 773b5c5 commit 828335a

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

‎src/spaceone/core/connector/space_connector.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def client(self) -> GRPCClient:
4444
return self._client
4545

4646
def dispatch(self, method: str, params: dict = None, **kwargs) -> Any:
47-
_LOGGER.debug(f"space_connector.dispatch : method: {method}")
4847
return self._call_api(method, params, **kwargs)
4948

5049
def _call_api(
@@ -56,23 +55,15 @@ def _call_api(
5655
x_workspace_id: str = None,
5756
) -> Any:
5857
resource, verb = self._parse_method(method)
59-
_LOGGER.debug(f"space_connector.dispatch :: resource: {resource}, verb: {verb}")
60-
6158
self._check_method(resource, verb)
6259

6360
params = params or {}
64-
_LOGGER.debug(f"space_connector.dispatch :: params: {params}")
6561
metadata = self._get_connection_metadata(token, x_domain_id, x_workspace_id)
66-
_LOGGER.debug(f"space_connector.dispatch :: metadata: {metadata}")
6762

6863
response_or_iterator = getattr(getattr(self._client, resource), verb)(
6964
params, metadata=metadata
7065
)
7166

72-
_LOGGER.debug(
73-
f"space_connector.dispatch :: response_or_iterator: {response_or_iterator}"
74-
)
75-
7667
if self._return_type == "dict":
7768
if isinstance(response_or_iterator, types.GeneratorType):
7869
return self._generate_response(response_or_iterator)

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,16 @@ def _retry_call(
109109
):
110110
retries = 0
111111

112-
_LOGGER.debug(
113-
f"client._retry_call.init :: client_call_details: {client_call_details}"
114-
)
115-
116112
while True:
117113
try:
118-
_LOGGER.debug(f"client._retry_call.start!!!")
119114
response_or_iterator = continuation(
120115
client_call_details, request_or_iterator
121116
)
122-
_LOGGER.debug(f"client._retry_call.response_or_iterator Success!!!")
123117

124118
if is_stream:
125119
response_or_iterator = self._generate_response(response_or_iterator)
126120
else:
127-
_LOGGER.debug(f"client._retry_call.start _check_error!!!")
128121
self._check_error(response_or_iterator)
129-
_LOGGER.debug(f"client._retry_call.finished _check_error!!!")
130122

131123
return response_or_iterator
132124

@@ -338,11 +330,6 @@ def client(endpoint=None, ssl_enabled=False, max_message_length=None, **client_o
338330
if endpoint is None:
339331
raise Exception("Client's endpoint is undefined.")
340332

341-
_LOGGER.debug(f"pygrpc.client :: endpoint: {endpoint}")
342-
_LOGGER.debug(
343-
f"pygrpc.client :: _GRPC_CHANNEL: {_GRPC_CHANNEL} / is in? {endpoint in _GRPC_CHANNEL}"
344-
)
345-
346333
if endpoint not in _GRPC_CHANNEL:
347334
options = []
348335

0 commit comments

Comments
(0)

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