Skip to content

Commit 2b2f8cf

Browse files
author
Jon Wayne Parrott
authored
Call start when creating a background thread transport (#3412)
1 parent ae57a13 commit 2b2f8cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/google-cloud-logging/google/cloud/logging/handlers/transports/background_thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def __init__(self, client, name, grace_period=_DEFAULT_GRACE_PERIOD,
247247
client.project, client._credentials, http)
248248
logger = self.client.logger(name)
249249
self.worker = _Worker(logger)
250+
self.worker.start()
250251

251252
def send(self, record, message):
252253
"""Overrides Transport.send().

0 commit comments

Comments
 (0)