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

Configure logging behavior? #314

Open
utility-aagrawal opened this issue Apr 12, 2024 · 2 comments
Open

Configure logging behavior? #314

utility-aagrawal opened this issue Apr 12, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@utility-aagrawal
Copy link

Hi,

Is there an option to configure logging behavior? I am using norfair within my python script. I am directing all my logs to a log file from my script but some warnings/logs are still written to the console. I suspect this is happening from warning/logs from norfair. Is there an option to control this behavior? I want all my logs to go to the log file. Thanks!

@utility-aagrawal utility-aagrawal added the help wanted Extra attention is needed label Apr 12, 2024
@utility-aagrawal
Copy link
Author

I tested some more and now I am sure it happens only when my input meets with a norfair warning. I am using motion estimator and sometimes my input will cause the following warning:

WARNING:root:The homography couldn't be computed in this frame due to low amount of points

As soon as my script hits this warning, all the subsequent logs/warnings get printed in console, instead of going to my log file. Let me know your feedback on this please. Thanks!

@utility-aagrawal
Copy link
Author

@aguscas , can you please comment on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant