Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fixes logging of target names with dashes #7281

Merged
3 commits merged into from
Oct 8, 2020

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Oct 8, 2020

There was a bug in tracing-core which resulted in not supporting dashes
in target names. This was fixed upstream. Besides that a test was added
to ensure that we don't break this again.

Fixes: #7251

There was a bug in tracing-core which resulted in not supporting dashes
in target names. This was fixed upstream. Besides that a test was added
to ensure that we don't break this again.
@bkchr bkchr added A0-please_review Pull request needs code review. B5-clientnoteworthy C3-medium PR touches the given topic and has a medium impact on builders. labels Oct 8, 2020
@bkchr bkchr requested review from andresilva and tomaka October 8, 2020 14:56
const EXPECTED_LOG_MESSAGE: &'static str = "yeah logging works as expected";

#[test]
fn dash_in_target_name_works() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice test :)

@@ -371,4 +372,33 @@ mod tests {
assert!(test_filter("telemetry", Level::TRACE));
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can also add an example with dashes to this test 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

@bkchr
Copy link
Member Author

bkchr commented Oct 8, 2020

bot merge

@ghost
Copy link

ghost commented Oct 8, 2020

Waiting for commit status.

@ghost
Copy link

ghost commented Oct 8, 2020

Checks failed; merge aborted.

@bkchr
Copy link
Member Author

bkchr commented Oct 8, 2020

bot merge

@ghost
Copy link

ghost commented Oct 8, 2020

Waiting for commit status.

@ghost ghost merged commit ffe1540 into master Oct 8, 2020
@ghost ghost deleted the bkchr-fix-dash-target-name-logging branch October 8, 2020 18:40
ordian added a commit that referenced this pull request Oct 9, 2020
…up-updates

* master:
  Async keystore + Authority-Discovery async/await (#7000)
  Fixes logging of target names with dashes (#7281)
  seal: Add automated weights for contract API calls (#7017)
  add ss58 id for nodle (#7279)
  Refactor CurrencyToVote (#6896)
  bump-allocator: document & poison (#7277)
  Reset flaming fir network (#7274)
  reschedule (#6860)
  Drop system cache for trie benchmarks (#7242)
  client: improve log formatting (#7272)
  Rework `InspectState` (#7271)
  SystemOrigin trait (#7226)
  Update ss58 registry for Dock network (#7263)
  .maintain/monitoring: Add alert when continuous task ends (#7250)
  Rename `TRANSACTION_VERSION` to `EXTRINSIC_VERSION` (#7258)
  Split block announce processing into two parts (#6958)
  Fix offchain election to respect the weight (#7215)
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C3-medium PR touches the given topic and has a medium impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging sub-libp2p doesn't work anymore
3 participants