tracing/tracing-log
Alexis Mousset 2cfc5130b6 log: Fix inverted module_path and file in AsTrace implementation (#187)
## 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.
2019-07-13 10:17:38 -07:00
..