Commit 36c2503
fix(cli/loglevel): add force param to
According to the docs, the `log.basicConfig()` method does nothing if the root
logger already has handlers configured. Apparently this happens before the
method is called in the code, and therefore we need the `force` parameter to
ensure the configuration is applied.
https://docs.python.org/3/library/logging.html#logging.basicConfig
Additionally, the call to `basicConfig()`
is moved to just after the `parse_args()` call to ensure the configuration is
applied for the whole run.
Signed-off-by: Nadja Brix Koch <[email protected]>log.basicConfig()
1 parent 9423a52 commit 36c2503
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
630 | 641 | | |
631 | 642 | | |
632 | 643 | | |
| |||
641 | 652 | | |
642 | 653 | | |
643 | 654 | | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | 655 | | |
653 | 656 | | |
654 | 657 | | |
| |||
0 commit comments