question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering chatty libraries

See original GitHub issue

In general, debug output is what I’m looking for, and I’d like to get it from all dependent libraries. Using the snippet for integrating with the logging library, all is mostly well.

However, if left unchecked, boto3 and requests are good examples of libraries which are too chatty and log a lot of records that are generally not useful. But it’s not obvious to me how to add loguru-side sinks in such a way that I can specify, x, y, and z packages ought to be filtered to INFO logs, and otherwise unspecified packages ought to continue logging at DEBUG.

Would the canonical method be adding a filter param to every add call and doing a separate level comparison at the point where i’m comparing against the logger?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Delgancommented, Nov 22, 2019

Implemented! Thanks again for your patience and your feedback. It will be available in the v0.4.0 coming soon. 👍

1reaction
Delgancommented, Nov 19, 2019

Yeah, don’t worry, I was just genuinely interested to know why you thought it was better to display all logs by default. I guess it entirely depends on the user. I think it might surprise some people to see logs which are not their own, this is why there is the possibility to .disable() them.

Anyway, I will implement the “dict-filtering” in the next few days and publish a new release shortly after that. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable chatty filtering of log messages (I ... - Issue Tracker
There is an explanation how it works now, it seems that if an app logs more than 5 message per second, they are...
Read more >
Chatty - Twitch Chat Client
Chatty is a chat software specifically made for Twitch, in the spirit of a ... AutoMod support to approve/deny filtered messages; Create Custom...
Read more >
Make chatty an official part of GNOME (#454) · Issues - GitLab
Hi GNOME Release Team, I have been working on chatty - A project for providing messaging services like SMS (using hardware...
Read more >
Suppress package startup messages - Reprex - Tidyverse
Break your reprex into “chunks”, in the .Rmd sense, and use a special #+ comment to silence messages and/or warnings for the chunk...
Read more >
Filter logcat by selected application *and* add custom filter in ...
I hate "your app is chatty" - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found