Skip to content

Commit 07627e0

Browse files
authored
Combine two logging statements into one. (googleapis#4574)
1 parent 4b1d9c1 commit 07627e0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • pubsub/google/cloud/pubsub_v1/subscriber/policy

pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,9 @@ def on_response(self, response):
296296
For each message, schedule a callback with the executor.
297297
"""
298298
for msg in response.received_messages:
299-
_LOGGER.debug('New message received from Pub/Sub:\n%r', msg)
300-
_LOGGER.debug(self._callback)
299+
_LOGGER.debug(
300+
'Using %s to process new message received:\n%r',
301+
self._callback, msg)
301302
message = Message(msg.message, msg.ack_id, self._request_queue)
302303
future = self._executor.submit(self._callback, message)
303304
future.add_done_callback(_callback_completed)

0 commit comments

Comments
 (0)