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

remove custom log code in favor of macro crate #199

Merged
merged 2 commits into from
Sep 16, 2019
Merged

remove custom log code in favor of macro crate #199

merged 2 commits into from
Sep 16, 2019

Conversation

yoshuawuyts
Copy link
Contributor

This removes our custom log macro code in favor of using kv-log-macro. This is a temporary crate that exists only until rust-lang/log#353 lands which enables progress on rust-lang/log#328. Thanks!

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@yoshuawuyts
Copy link
Contributor Author

Also side note, I'm particularly excited for shorthand kv support as suggested here:

current

trace!("block_on", {
    parent_id: parent_id,
    child_id: child_id,
});

proposed

trace!("block_on", { parent_id, child_id });

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Beautiful, thank you <3

@ghost
Copy link

ghost commented Sep 16, 2019

bors r+

bors bot added a commit that referenced this pull request Sep 16, 2019
199: remove custom log code in favor of macro crate r=stjepang a=yoshuawuyts

This removes our custom log macro code in favor of using [`kv-log-macro`](https://github.com/yoshuawuyts/kv-log-macro). This is a temporary crate that exists only until rust-lang/log#353 lands which enables progress on rust-lang/log#328. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@bors
Copy link
Contributor

bors bot commented Sep 16, 2019

Build failed

  • continuous-integration/travis-ci/push

@ghost
Copy link

ghost commented Sep 16, 2019

can you do cargo fmt and then merge?

@yoshuawuyts
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Sep 16, 2019
199: remove custom log code in favor of macro crate r=yoshuawuyts a=yoshuawuyts

This removes our custom log macro code in favor of using [`kv-log-macro`](https://github.com/yoshuawuyts/kv-log-macro). This is a temporary crate that exists only until rust-lang/log#353 lands which enables progress on rust-lang/log#328. Thanks!

Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@bors
Copy link
Contributor

bors bot commented Sep 16, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 1341fa7 into master Sep 16, 2019
@yoshuawuyts yoshuawuyts deleted the clean-log branch September 16, 2019 13:54
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.

1 participant