-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
I have this piece of code in my Django project and 'start' is printed but I never see 'end'.
from google.cloud import logging
logging_client = logging.Client()
log_name = 'frontend'
logger = logging_client.logger(log_name)
print 'start'
print logger.project
logger.log_text('test')
print 'end'
Also, if I set
logging_client._use_grpc = False
It won't freeze, but I don't see my log in stackdriver.
It will work!
BTW, I also see this error in test cases but not in production env:
RetryError: GaxError(Exception occurred in retry method that was not classified as transient, caused by <_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)>)
[UPDATE] It works fine locally, but when I deploy everything to kubenetes with Apache, I keep getting the same problem (log_text freezes).
[UPDATE] With logging_client._use_grpc = False
, it just works for me on kubenetes. It seems the grpc call will just freeze.
Metadata
Metadata
Assignees
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.