GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — log_text freezes in my Django project · Issue #3310 · googleapis/google-cloud-python

log_text freezes in my Django project #3310

New issue
Copy link
New issue
Copy link
Closed
Closed
log_text freezes in my Django project#3310
Copy link
Assignees
lukesneeringer
Labels
api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-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.

Description

@hangll
hangll
opened on Apr 18, 2017
Issue body actions

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.

Activity

  1. dhermes
    added
    api: loggingIssues related to the Cloud Logging API.
    on Apr 18, 2017
  2. dhermes
    assigned
    waprin
    on Apr 18, 2017
  3. lukesneeringer
    added
    priority: p2Moderately-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.
    on Apr 18, 2017
  4. hangll commented on Apr 21, 2017

    @hangll
    hangll
    on Apr 21, 2017
    Author
    More actions

    Hi,

    Has anyone looked into this problem? We really want to have this implemented but can't figure out the issue.

  5. dhermes commented on Apr 21, 2017

    @dhermes
    dhermes
    on Apr 21, 2017
    Contributor
    More actions

    @waprin Can you take a look?

  6. hangll commented on May 1, 2017

    @hangll
    hangll
    on May 1, 2017
    Author
    More actions

    Friendly ping?

  7. waprin commented on May 1, 2017

    @waprin
    waprin
    on May 1, 2017
    Contributor
    More actions

    @hangll was largely away for a few weeks but I'm back today, will try to repro this in a bit.

  8. lukesneeringer commented on Aug 10, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 10, 2017
    Contributor
    More actions

    It looks like #3088 might have been fixed (it is not clear to me whether it was fixed or closed as a duplicate).

    @hangll If you are still having this issue, feel free to reopen this.

  9. lukesneeringer
    closed this as completedon Aug 10, 2017
  10. theacodes
    unassigned
    waprin
    on Sep 28, 2018
  11. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  12. parthea
    added a commit that references this issue on Oct 21, 2023

    move monitoring samples from python-docs-samples (#51)

    d95f563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-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.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.