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

Use standard logging in debug mode #12

Merged
merged 1 commit into from May 17, 2018
Merged

Use standard logging in debug mode #12

merged 1 commit into from May 17, 2018

Conversation

AzureMarker
Copy link
Collaborator

@AzureMarker AzureMarker commented May 16, 2018

In debug mode, the quote!'d code is not guarrenteed to have access to the log macros, and in some cases the macros may be completely different (Rocket has its own error! macro).

Solution: change info to println and error to eprintln.

Note: The build is broken because the Cargo.lock file is out of date, but #11 fixes that.

In debug mode, the `quote!`'d code is not guarrenteed to have access to
the `log` macros, and in some cases the macros may be completely
different (Rocket has its own `error!` macro).

Change `info` to `println` and `error` to `eprintln`.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
@pyrossh
Copy link
Owner

pyrossh commented May 17, 2018

Ok. Seems good. LGTM.

@pyrossh pyrossh merged commit 27b7743 into pyrossh:master May 17, 2018
@AzureMarker AzureMarker deleted the fix/log-macro-usage branch May 17, 2018 19:55
pyrossh pushed a commit that referenced this pull request Aug 24, 2021
Use standard logging in debug mode
pyrossh pushed a commit that referenced this pull request Aug 24, 2021
Use standard logging in debug mode
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.

None yet

2 participants