mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
macros: fix breakage in experimental tracing-macros
crate (#882)
The `tracing-macros` crate uses internal `tracing` APIs that are unstable. These APIs changed in 0.1.18 (not a breaking change, since they are explicitly not stable API). `tracing-macros` needed to be updated to use the new versions of the internal APIs. As a side note, I'm surprised this wasn't caught before merging the branch, and only happened on `master`. Are we not checking all crates for PR builds? If so, we should probably fix that. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
parent
c9f8b6dbe9
commit
a4069486b4
@ -17,7 +17,7 @@ keywords = ["logging", "tracing"]
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
tracing = "0.1"
|
||||
tracing = "0.1.18"
|
||||
|
||||
[dev-dependencies]
|
||||
tracing-log = "0.1"
|
||||
|
@ -37,7 +37,7 @@ macro_rules! dbg {
|
||||
fields: value,
|
||||
};
|
||||
let val = $ex;
|
||||
if tracing::is_enabled!(callsite) {
|
||||
if callsite.is_enabled() {
|
||||
let meta = callsite.metadata();
|
||||
let fields = meta.fields();
|
||||
let key = meta
|
||||
|
Loading…
x
Reference in New Issue
Block a user