Commit c1eb55b
committed
refactor(logging): use centralized logging helpers in consumers
Replace inline log-level resolution and handler creation in
lightspeed_stack.py and runners/uvicorn.py with calls to the shared
resolve_log_level() and create_log_handler() from log.py.
Remove the private _resolve_log_level() from uvicorn.py and the direct
RichHandler import from lightspeed_stack.py.
Signed-off-by: Major Hayden <major@redhat.com>1 parent 9767428 commit c1eb55b
2 files changed
Lines changed: 12 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
31 | 21 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
35 | 25 | | |
36 | 26 | | |
37 | 27 | | |
38 | 28 | | |
39 | 29 | | |
40 | | - | |
| 30 | + | |
41 | 31 | | |
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
45 | 35 | | |
46 | | - | |
| 36 | + | |
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 13 | | |
38 | 14 | | |
39 | 15 | | |
| |||
43 | 19 | | |
44 | 20 | | |
45 | 21 | | |
46 | | - | |
| 22 | + | |
47 | 23 | | |
48 | 24 | | |
49 | 25 | | |
| |||
0 commit comments