From c82ca0467360110170619205a59f987e03e85632 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 27 Jan 2020 19:52:46 +0100 Subject: [PATCH] android: deactivate annoying jnius logs when DEBUG is set --- sat/core/constants.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sat/core/constants.py b/sat/core/constants.py index b94b0475..1c1ca680 100644 --- a/sat/core/constants.py +++ b/sat/core/constants.py @@ -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