mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
some parts of androguard 4.x use loguru instead of logging
This commit is contained in:
parent
1c84f63247
commit
ef4ec74882
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user