Commit 34ff24f
committed
Prevent logptest.NewTestingLogger from panics.
Because NewTestingLogger used testing.T as the logger output, if the
logger is used after the test has ended, it will panic.
This behaviour has been seen a few times and causes flakiness in our
CI.
To mitigate this, NewTestingLogger now just calls NewFileLogger that
uses a file as the logger output, thus being safe for use even after
the test has ended.1 parent 03ca452 commit 34ff24f
1 file changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 36 | + | |
| 37 | + | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
0 commit comments