Skip to content

Commit 2d49a02

Browse files
committed
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
1 parent 8015703 commit 2d49a02

File tree

1 file changed

+2
-0
lines changed
  • unblob/handlers/executable

1 file changed

+2
-0
lines changed

unblob/handlers/executable/elf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
)
1717
from unblob.models import ExtractError, Extractor, HexString, StructHandler, ValidChunk
1818

19+
lief.logging.set_level(lief.logging.LOGGING_LEVEL.ERROR)
20+
1921

2022
class NullExtract(ExtractError):
2123
pass

0 commit comments

Comments
 (0)