Commit cf1a782
authored
* fix(utils): prevent duplicate log messages (#339)
Acquire a lock in utils.configure_logging. Otherwise this function has
a race where two threads can both call logger.remove(), and then both
call logger.add(), creating two identical sinks.
* refactor(record): remove redundant configure_logging calls
configure_logging is already called at the module level so there's no
need to call it with identical arguments in various functions.
* fixup! fix(utils): prevent duplicate log messages (#339)
1 parent 0ee5397 commit cf1a782
2 files changed
+21
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
281 | | - | |
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
| |||
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
439 | | - | |
440 | 437 | | |
441 | 438 | | |
442 | 439 | | |
| |||
463 | 460 | | |
464 | 461 | | |
465 | 462 | | |
466 | | - | |
467 | 463 | | |
468 | 464 | | |
469 | 465 | | |
| |||
513 | 509 | | |
514 | 510 | | |
515 | 511 | | |
516 | | - | |
517 | 512 | | |
518 | 513 | | |
519 | 514 | | |
| |||
535 | 530 | | |
536 | 531 | | |
537 | 532 | | |
538 | | - | |
539 | 533 | | |
540 | 534 | | |
541 | 535 | | |
| |||
689 | 683 | | |
690 | 684 | | |
691 | 685 | | |
692 | | - | |
693 | 686 | | |
694 | 687 | | |
695 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments