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

Removing Unnecssary Logs #120

Closed
arcinfini opened this issue Dec 31, 2022 · 6 comments
Closed

Removing Unnecssary Logs #120

arcinfini opened this issue Dec 31, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@arcinfini
Copy link
Contributor

logs are getting spammed with content such as the following occasionally

[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:22:58] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:22:59] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:22:59] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:22:59] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:22:59] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:22:59] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:02] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:03] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
[2022-12-31 20:23:05] [DEBUG  ] pymongo.ocsp_support: Peer did not staple an OCSP response
[2022-12-31 20:23:05] [DEBUG  ] pymongo.ocsp_support: Requesting OCSP data
[2022-12-31 20:23:05] [DEBUG  ] pymongo.ocsp_support: Trying http://r3.o.lencr.org
[2022-12-31 20:23:05] [DEBUG  ] pymongo.ocsp_support: Using cached OCSP response.
[2022-12-31 20:23:05] [DEBUG  ] pymongo.ocsp_support: OCSP cert status: <OCSPCertStatus.GOOD: 0>
@auadams
Copy link
Contributor

auadams commented Jan 15, 2023

https://www.mongodb.com/docs/manual/reference/method/db.setLogLevel/

the easy fix would be once we set up a db we should then set the log level to "warn" instead of "debug

@sloth-ontabasco sloth-ontabasco added the bug Something isn't working label Aug 26, 2023
@sloth-ontabasco
Copy link
Member

Is there a way to duplicate this?

@arcinfini
Copy link
Contributor Author

Not that we know of. A possible good solution to this is limit external module logging

@Utkarsh-Patel-13
Copy link
Contributor

Was going through Pymongo documentation.
https://pymongo.readthedocs.io/en/stable/api/pymongo/index.html

There is no way to set log level.

Seems like the method mentioned in MongoDB documentation is not implemented by Pymongo.

@arcinfini
Copy link
Contributor Author

I believe this has been resolved on its own. Will do some checks to see if that is the case and close if so.

@arcinfini
Copy link
Contributor Author

I am going to close this and make a better issue relating to logging as a whole. I think a little rework would be beneficial at this stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants