Skip to content

Commit 553a9a0

Browse files
committed
lief: silence error log spam
Since 0.15, the error logs got very chatty (search for `LIEF_ERR` in its code base). E.g. the following log appears tens of thousands of times for an unsupported architecture: LIEF does not support relocation for 'ARC_COMPACT' There are no logs for `CRITICAL` level, so there is nothing much we can do besides turning of logging.
1 parent 2702077 commit 553a9a0

File tree

1 file changed

+1
-1
lines changed
  • unblob/handlers/executable

1 file changed

+1
-1
lines changed

Diff for: unblob/handlers/executable/elf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from unblob.models import HexString, StructHandler, ValidChunk
2121

22-
lief.logging.set_level(lief.logging.LEVEL.ERROR)
22+
lief.logging.disable()
2323

2424
logger = get_logger()
2525

0 commit comments

Comments
 (0)