Commit 878e632
committed
Don't override log context set by inner
If a logger is wrapped with `WithContext` which is then wrapped
with another `WithContext` with different values, we want to use
the context information set closest to the code, ie that which
will be set first.
Thus, here, we avoid overriding context that has already been set.WithContexts1 parent 253ceed commit 878e632
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
0 commit comments