Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for env_logger for qemu binary only fuzzers #2817

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WorksButNotTested
Copy link
Collaborator

Log messages changed to log::info so they aren't compiled out of release builds. They are in non-performance critical portions of code.

@@ -95,6 +95,7 @@ pub struct FuzzerOptions {
pub const MAX_INPUT_SIZE: usize = 1048576; // 1MB

pub fn fuzz() -> Result<(), Error> {
env_logger::init();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use the simple logger from libafl?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now, we are using a mix of env_logger and libafl logger.
maybe we could create some kind of StdLogger and unify logging usage?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean everybody is free to use whatever they want, that's what libraries are for :D
but if you just want to see the logs and don't care about the extra stuff env logger provides there's no reason for the extra dependency

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to be able to set the log output level at runtime rather than compile time. I don't think that the simple logger supports that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants