mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
some parts of androguard 4.x use loguru instead of logging
This commit is contained in:
parent
1c84f63247
commit
ef4ec74882
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue