Skip to content

Commit

Permalink
lief: silence error log spam
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vlaci committed Aug 23, 2024
1 parent 2702077 commit 553a9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unblob/handlers/executable/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)
from unblob.models import HexString, StructHandler, ValidChunk

lief.logging.set_level(lief.logging.LEVEL.ERROR)
lief.logging.disable()

logger = get_logger()

Expand Down

0 comments on commit 553a9a0

Please sign in to comment.