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

Stop initializing the logger twice in dogstatsd #31662

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

pgimalac
Copy link
Member

@pgimalac pgimalac commented Dec 2, 2024

What does this PR do?

Stop initializing the logger explicitly in dogstatsd, as it is already initialized when importing the component.

Motivation

The exact same logic is already in comp/core/log and runs when initializing the log component.
There is no need to do the setup again.

Describe how you validated your changes

Ran dogstatsd and checked that it was still able to log as expected.

Possible Drawbacks / Trade-offs

Additional Notes

@pgimalac pgimalac requested a review from a team as a code owner December 2, 2024 16:18
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Dec 2, 2024
@pgimalac
Copy link
Member Author

pgimalac commented Dec 3, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Dec 3, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-12-03 07:34:21 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 24m.

@dd-mergequeue dd-mergequeue bot merged commit f32d2d4 into main Dec 3, 2024
261 checks passed
@dd-mergequeue dd-mergequeue bot deleted the pgimalac/dogstatsd-fix-double-logger-setup branch December 3, 2024 07:56
@github-actions github-actions bot added this to the 7.62.0 milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog qa/done QA done before merge and regressions are covered by tests short review PR is simple enough to be reviewed quickly team/agent-metrics-logs team/agent-shared-components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants