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

internal: use args for LogRecord when logging #1116

Merged

Conversation

karolinepauls
Copy link
Contributor

Fixes #1115.

This avoids message duplication in Sentry.

@karolinepauls karolinepauls requested a review from a team as a code owner October 28, 2019 15:14
@majorgreys majorgreys changed the title [internal] DDLogger: include skipped mesage count in LogRecord.args internal: use args for LogRecord when logging Oct 29, 2019
Copy link
Member

@brettlangdon brettlangdon left a comment

Choose a reason for hiding this comment

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

minor/pedantic formatting suggestions, but otherwise this looks good.

good catch and that you for submitting a PR for it!!!

tests/internal/test_logger.py Outdated Show resolved Hide resolved
tests/internal/test_logger.py Outdated Show resolved Hide resolved
tests/internal/test_logger.py Outdated Show resolved Hide resolved
Co-Authored-By: Brett Langdon <me@brett.is>
@brettlangdon
Copy link
Member

Failing tests are segfaults with sqlalchemy, not related to any changes in this PR

@brettlangdon brettlangdon merged commit 0ff0403 into DataDog:master Oct 29, 2019
@majorgreys majorgreys added this to the 0.31.0 milestone Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DDLogger rewrites LogRecord.msg, which causes Sentry events duplication
4 participants