-
Notifications
You must be signed in to change notification settings - Fork 242
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
Use trace level logging in generated code #1702
Comments
We unconditionally log at debug level (though maybe this really should be trace level), however depending on what log implementation you use you can raise the minimal log level for a particular module.
and then filter this in the different log configurations: https://github.com/mozilla/glean/blob/main/glean-core/src/lib.rs#L710-L743 |
@badboy that's a good idea, I'll move the noisy functions to a different module and set the log level there. Thanks But I agree I think |
Is this issue still open? Could I submit a PR? |
Yep, a PR would be welcome! |
Fixed by: #2275 |
Is it possible to not have one function log every time its called?
I have a very simple function
Its called a lot of times and drowns out all the other logs, would it be possible to opt out of logging on a per function basis?
![Screenshot 2023-08-10 at 6 45 24 PM](https://private-user-images.githubusercontent.com/1775346/259889848-861ec1b6-efd5-47f2-bb72-475543fcd6f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3Nzc2NjgsIm5iZiI6MTczOTc3NzM2OCwicGF0aCI6Ii8xNzc1MzQ2LzI1OTg4OTg0OC04NjFlYzFiNi1lZmQ1LTQ3ZjItYmI3Mi00NzU1NDNmY2Q2ZjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTdUMDcyOTI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWQyYjU1YjMzN2RmYzcxNDE3Yzc2YTEyM2EzNzI2YmJiNjU4YWE5ZDM1M2RiMmY2ZDU0ODI5MmJmM2NjNjg2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.HU3J3upJ-LU08p9A1xInJicSF2KhGC1slf8AqlhHi-0)
The text was updated successfully, but these errors were encountered: