-
Notifications
You must be signed in to change notification settings - Fork 33
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
Duplicate log messages from RequestMiddleware without explicitly adding logger #724
Comments
maybe you need to add See: this issue: #483 (comment) |
Oh I do have the django loggers in my config but the duplicate is coming from the
This is a reordered version slimmed down version of the duplicate requests
|
in your code (or any of your library) do you do: import logging
logging.info("something") As noted in this issue, the root logger breaks logging in some situations: |
I don't see any in my code base, but looking at the other bug it seems like any library I import could be doing this. I tired following that bug and changing my config:
I also tried setting I don't imagine you know a good way to see where this other root logger might be originating? I appreciate you taking time out of your day to look at this thank you. |
try to isolate the problem by methodically: In the end only the problem will remain. |
Hello hope you are doing well,
I am doing some overhaulling to logging system in my application and I have noticed that I am getting duplicate logs from the RequestMiddleware when I don't add it explictily to my logging config loggers.
The duplicate logs look like this:
My django settings look like:
Now I am still a logging novice so this could very well be a misconfiguration on my end but understanding of the logging system was that since I am already adding
django_structlog
to my loggers and it doesn't have its own handler but uses the root logger then any sub path ofdjango_structlog
should all be flowing through my formatting.Thanks for your time.
The text was updated successfully, but these errors were encountered: