Skip to content
New issue

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

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

Already on GitHub? # to your account

ref: Selectively log internal errors to stderr #285

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Conversation

jan-auer
Copy link
Member

We're logging quite a few errors now for events that are being filtered or rate limited. Most importantly, actix automatically logs all errors returned from endpoint futures.

This PR changes this, so that errors are logged selectively to stderr if they are considered "server" or "internal" errors, and otherwise either swallowed or logged to INFO.

@jan-auer jan-auer self-assigned this Oct 29, 2019
@untitaker
Copy link
Member

untitaker commented Oct 29, 2019

I fixed the tests. Seems like Relay now reports more errors on (forceful) shutdown than previously, which is probably a good thing.

The regular graceful shutdown still behaves the same (raising no errors)

@untitaker
Copy link
Member

before we merge this @jan-auer please review the changes I made

@jan-auer
Copy link
Member Author

Looks good, thanks @untitaker

@jan-auer jan-auer merged commit db86b75 into master Oct 29, 2019
@jan-auer jan-auer deleted the ref/targeted-logging branch October 29, 2019 14:47
jan-auer added a commit that referenced this pull request Nov 4, 2019
* master: (26 commits)
  doc: Add documentation about the path of an event through relay (#289)
  release: 0.4.59
  meta: Changelog for 0.4.59
  ref: Set _relay_processed to true (#293)
  feat(protocol): Add valid platforms as constant (#294)
  fix(protocol): Add missing legacy alias for stacktrace (#292)
  release: 0.4.58
  meta: Add changelog for 0.4.58
  feat: Expose globbing code from Semaphore to Python (#288)
  fix: Add code comment
  fix: Normalize before datascrubbing (#290)
  feat(projects): Evict project caches after some time (#287)
  feat: Add mkdocs like in symbolicator
  ref: Add event size metrics (#286)
  test: add panic test
  ref: Selectively log internal errors to stderr (#285)
  fix(cabi): Do not ignore process_value result in scrub_event (#284)
  feat(config): Add a config value for thread counts (#283)
  fix: Refactor outcomes for parity with Sentry (#282)
  feat: Add an error boundary to parsing project states (#281)
  ...
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants