JeffLIrion/python-androidtv

Suppress debug messages from connection.py

glassbase opened this issue · 9 comments

How can we suppress the spamming of debug messages?

I used to just comment them out of config/deps/adb_messenger/connection.py but now that the deps folder is no longer used, what can we do?

Please file an issue in the Home Assistant repo.

In the meantime, this custom component should fix the issue: https://github.com/JeffLIrion/ha-androidtv

@glassbase does that custom component fix the issue?

I am running it but still get the logs. Is there something I need to put in logger.yaml to suppress them?

Are you running the version of the component with this on line 23 of media_player.py?

logging.getLogger('adb_messenger').setLevel(_LOGGER.getEffectiveLevel())

Will update to latest version.

I now have latest version with the line you mentioned... still got the messages.

OK, I changed the line to this:

logging.getLogger('adb_messenger').setLevel(logging.CRITICAL)

Do you still get the messages?

That worked. Thanks

I made a second change that bumps the version for pure-python-adb, and I think that's what fixed the issue, not the line referenced above. I removed that line just now. Could you let me know if it's still fixed?