android: deactivate annoying jnius logs when DEBUG is set
This commit is contained in:
parent
764e247a0a
commit
c82ca04673
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue