Squelch excessive logging

This commit is contained in:
Mark Qvist 2023-10-26 12:53:18 +02:00
parent cf6d88f17e
commit f531b2ecaa
4 changed files with 37 additions and 1 deletions

View file

@ -18,6 +18,14 @@ from .sense import Telemeter
if RNS.vendor.platformutils.get_platform() == "android":
from jnius import autoclass, cast
import jnius.reflect
class redirect_log():
def isEnabledFor(self, arg):
return False
def debug(self, arg):
pass
jnius.reflect.log = redirect_log()
class PropagationNodeDetector():
EMITTED_DELTA_GRACE = 300