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

Replace custom log! implementation with env_logger #139

Closed
kinetiknz opened this issue Jan 26, 2018 · 2 comments
Closed

Replace custom log! implementation with env_logger #139

kinetiknz opened this issue Jan 26, 2018 · 2 comments

Comments

@kinetiknz
Copy link
Collaborator

This only exists because it was a pain to use other crates inside Gecko when mp4parse was first developed, but now it's easier and we have many existing users of env_logger inside Gecko.

This came up when @bholley asked why we're using this while he was looking at reducing Debug trait use in release logging.

@djg
Copy link

djg commented Jan 26, 2018 via email

@bholley
Copy link

bholley commented Jan 26, 2018

Replacing the existing log! macro to be a no-op eliminates 71 out of 389 remaining Debug impls in libxul.

Once we switch to env_logger, we should use debug! or trace! for anywhere we want {:?}, since those macros get compiled out in release builds.

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

No branches or pull requests

3 participants