Commit 5c62190
committed
feat: Make the task handler log level configurable
Closes #650.
The task handler is what feeds the log view in the Airflow web UI. Its
level was pinned to INFO with no way to change it, so asking for DEBUG
logs meant getting them in the files and the Vector aggregator but not in
the UI, and there was no way to quiet the UI either.
Render the level from the new task appender in the CRD. It defaults to
INFO, which is what Airflow itself defaults to, so nothing changes for
existing deployments.
A task level below INFO also has to open up the logger it is wired to,
otherwise the logger drops the records before the handler can filter
them. A level above INFO must not raise the logger, since other handlers
still want those records, so the logger level is the lower of the two.
Both the stdlib template used by 2.x and 3.0.x and the structlog template
used by 3.1 and later are covered.1 parent a22eb38 commit 5c62190
6 files changed
Lines changed: 2409 additions & 46 deletions
File tree
- docs/modules/airflow/pages/usage-guide
- extra
- rust/operator-binary/src/controller/build/properties/product_logging
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
36 | | - | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments