some parts of androguard 4.x use loguru instead of logging

This commit is contained in:
Hans-Christoph Steiner 2024-04-24 15:45:15 +02:00
parent 1c84f63247
commit ef4ec74882
1 changed files with 7 additions and 0 deletions

View File

@ -2654,6 +2654,13 @@ def _androguard_logging_level(level=logging.ERROR):
):
logging.getLogger(name).setLevel(level)
# some parts of androguard 4.x use loguru instead of logging
try:
from loguru import logger
logger.remove()
except ImportError:
pass
def get_androguard_APK(apkfile):
try: