Skip to content

Commit ec05292

Browse files
authored
Fix incorrect timing of the "RPC request sent" log. (#999)
1 parent bc9a505 commit ec05292

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

mobly/controllers/android_device_lib/snippet_client_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ def _client_send(self, message):
588588
try:
589589
self._client.write(f'{message}\n'.encode('utf8'))
590590
self._client.flush()
591+
self.log.debug('RPC request sent.')
591592
except socket.error as e:
592593
raise errors.Error(
593594
self._device,

mobly/snippet/client_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ def _rpc(self, rpc_func_name, *args, **kwargs):
289289

290290
self.log.debug('Sending RPC request %s.', request)
291291
response = self.send_rpc_request(request)
292-
self.log.debug('RPC request sent.')
293292

294293
if self.verbose_logging or _MAX_RPC_RESP_LOGGING_LENGTH >= len(response):
295294
self.log.debug('Snippet received: %s', response)

0 commit comments

Comments
 (0)