Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert debug println!()s to log!() macros.
We have tracing println!()s throughout the code to help with debugging and verification as we write, but this isn't very nice for clients. Add a 'trace' flag to the MediaContext struct, defaulting to false. Convert the tracing println!()s to a custom log!() macros calls, which print the args only if context.trace is true. This turns off the trace prints by default, but still lets us use them for testing. This is the first rust macro I wrote, so there may be some style issues
- Loading branch information
Showing
1 changed file
with
36 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters