Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pubsub): improve logging #593

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

TheKevJames
Copy link
Member

Improve some logging:

  • move some info logs to debug, as they're generally just noise for most
    users
  • avoid logging requested shutdowns as warnings, and log unexpected ones
    as errors

Improve some logging:
* move some info logs to debug, as they're generally just noise for most
  users
* avoid logging requested shutdowns as warnings, and log unexpected ones
  as errors
Copy link
Contributor

@shaundialpad shaundialpad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense in theory! These were definitely nice to have when we were debugging issues with GKE pods receiving multiple kill signals and the subscriber getting doubly cancelled (doesn't appear to be happening any longer from what I can tell) and other oddities, but if we ever need to dig into this again I suppose we can always manually enable it.

@TheKevJames TheKevJames merged commit dc626c8 into master Apr 3, 2023
@TheKevJames TheKevJames deleted the kjames/improve-logging branch April 3, 2023 20:21
pull bot pushed a commit to tj-python/gcloud-aio that referenced this pull request Apr 4, 2023
Improve some logging:
* move some info logs to debug, as they're generally just noise for most
  users
* avoid logging requested shutdowns as warnings, and log unexpected ones
  as errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants