comparison sat/core/constants.py @ 3127:2798c86412e1

android: deactivate annoying jnius logs when DEBUG is set
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 19:52:46 +0100
parents 4f8bdf50593f
children 9d0df638c8b4
comparison
equal deleted inserted replaced
3126:2b0f739f8a46 3127:2798c86412e1
422 422
423 # we need to use Android API to get downloads directory 423 # we need to use Android API to get downloads directory
424 import os.path 424 import os.path
425 from jnius import autoclass 425 from jnius import autoclass
426 426
427 # we don't want the very verbose jnius log when we are in DEBUG level
428 import logging
429 logging.getLogger('jnius').setLevel(logging.WARNING)
430 logging.getLogger('jnius.reflect').setLevel(logging.WARNING)
431
427 Environment = autoclass("android.os.Environment") 432 Environment = autoclass("android.os.Environment")
428 433
429 BaseDirectory = None 434 BaseDirectory = None
430 Const.DEFAULT_CONFIG = { 435 Const.DEFAULT_CONFIG = {
431 "local_dir": "/data/data/org.salutatoi.cagou/app", 436 "local_dir": "/data/data/org.salutatoi.cagou/app",