From 2d49a0239b519b81d4b781860ac096dae4d03492 Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Thu, 9 Jun 2022 11:58:48 +0200 Subject: [PATCH] Explicitly set LIEF logging level. We don't want informational logs polluting unblob logs, but we do want to be informed when something really wrong happened so instead of completely disabling LIEF logging, we set the level to ERROR. Fixes #391 --- unblob/handlers/executable/elf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unblob/handlers/executable/elf.py b/unblob/handlers/executable/elf.py index af01b9d46c..73545e2cf5 100644 --- a/unblob/handlers/executable/elf.py +++ b/unblob/handlers/executable/elf.py @@ -16,6 +16,8 @@ ) from unblob.models import ExtractError, Extractor, HexString, StructHandler, ValidChunk +lief.logging.set_level(lief.logging.LOGGING_LEVEL.ERROR) + class NullExtract(ExtractError): pass