Commit 23fe3af
committed
internal: Ensure tracing is configured in slow tests
rust-lang/rust-analyzer#16394 changed the logging initialisation to
create a Config struct, but never did anything with it. Call `.init()`
so slow tests have tracing configured.
You can test this by adding a test failure to a slow test,
e.g. `test_format_document_2018`, and then running it:
```
$ RA_LOG=trace RUN_SLOW_TESTS=1 cargo t test_format_document_2018
```
Previously this didn't log anything, even though RA_LOG was set.1 parent 985ec34 commit 23fe3af
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
0 commit comments