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

Appearance settings

Commit 10e6f99

Browse filesBrowse files
authored
Using logger for module in Pub/Sub publisher. (#4473)
1 parent 56fc884 commit 10e6f99
Copy full SHA for 10e6f99

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
  • pubsub/google/cloud/pubsub_v1/publisher/batch
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎pubsub/google/cloud/pubsub_v1/publisher/batch/thread.py‎

Copy file name to clipboardExpand all lines: pubsub/google/cloud/pubsub_v1/publisher/batch/thread.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
from google.cloud.pubsub_v1.publisher.batch import base
2525

2626

27+
_LOGGER = logging.getLogger(__name__)
28+
29+
2730
class Batch(base.Batch):
2831
"""A batch of messages.
2932
@@ -173,7 +176,7 @@ def _commit(self):
173176
self.messages,
174177
)
175178
end = time.time()
176-
logging.getLogger().debug('gRPC Publish took {s} seconds.'.format(
179+
_LOGGER.debug('gRPC Publish took {s} seconds.'.format(
177180
s=end - start,
178181
))
179182

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.