Skip to content

Conversation

@qkaiser
Copy link
Contributor

@qkaiser qkaiser commented Jun 9, 2022

We don't want informational logs from LIEF 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 CRITICAL.

Fixes #391

@qkaiser qkaiser added the enhancement New feature or request label Jun 9, 2022
@qkaiser qkaiser self-assigned this Jun 9, 2022
@vlaci
Copy link
Contributor

vlaci commented Jun 9, 2022

I don't see any logs defined with critical severity in lief so this change effectively disables logging too.

@martonilles
Copy link
Contributor

I don't see any logs defined with critical severity in lief so this change effectively disables logging too.

maybe set tot ERROR 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
@qkaiser qkaiser force-pushed the 391-fix-lief-logs branch from 8b65ed2 to 2d49a02 Compare June 9, 2022 14:22
@qkaiser
Copy link
Contributor Author

qkaiser commented Jun 9, 2022

Set to ERROR level and edited the commit message accordingly. Double checked that log pollution does not happen with ERROR level.

@vlaci
Copy link
Contributor

vlaci commented Jun 9, 2022

If we later find that we'd need these logs in the python logger, it doesn't seem that hard to improve LIEF's Python binding to swap the logger to a wrapper to Python's logging library.

@vlaci vlaci merged commit a68b0c2 into main Jun 9, 2022
@vlaci vlaci deleted the 391-fix-lief-logs branch June 9, 2022 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logs from LIEF escape to stderr

4 participants