mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-30 22:40:34 +00:00

## Motivation The metadata produced for logs by `as_trace` (used for filtering), when using `tracing-log`, have inverted file and module path fields: ``` Metadata { name: "log record", target: "tokio_reactor", level: Level(Trace), module_path: "/.../.cargo/registry/src/github.com-.../tokio-reactor-0.1.9/src/lib.rs", location: tokio_reactor:390, [...] } ``` ## Solution It is fixed by passing them in the right order in the `Metadata` constructor.