Commit 832fb61
authored
Gtest IT: log also to stderr, not only to file (#461)
## Motivation
[A recent CI
run](https://github.com/scylladb/cpp-rs-driver/actions/runs/26300848077/job/77426773254?pr=456)
experienced a panic inside the Rust Driver. I couldn't debug it, because
no logs were printed.
## What's done
### C++ Gtest Logger output
#### Destination
Before, the logs were only output to a file. Now, they are additionally
printed to stderr.
#### Format
1. Timestamp display was improved, made in line with Rust tracing
subscriber's one.
2. Log level is now coloured (IFF stderr points to a terminal). It uses
the same palette as, again, Rust tracing subscriber.
### CI
1. `RUST_LOG=trace` is now passed, so the logs are visible in the CI run
console.
2. `RUST_BACKTRACE=full` is now passed, which will aid in debugging.3 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
128 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
129 | 162 | | |
130 | 163 | | |
131 | 164 | | |
| |||
0 commit comments