android: deactivate annoying jnius logs when DEBUG is set

This commit is contained in:
Goffi 2020-01-27 19:52:46 +01:00
commit c82ca04673

View file

@ -424,6 +424,11 @@ if (
import os.path
from jnius import autoclass
# we don't want the very verbose jnius log when we are in DEBUG level
import logging
logging.getLogger('jnius').setLevel(logging.WARNING)
logging.getLogger('jnius.reflect').setLevel(logging.WARNING)
Environment = autoclass("android.os.Environment")
BaseDirectory = None