Skip to content

Commit d9fecba

Browse files
ashbbolkedebruin
authored andcommitted
[AIRFLOW-XXX] Updating instructions about logging changes in 1.10 (apache#3715)
We had a few other logging changes that weren't mentioned in here that meant previous logs were not viewable anymore.
1 parent 9131d6c commit d9fecba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

UPDATING.md

+11
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ elasticsearch_log_id_template = {{dag_id}}-{{task_id}}-{{execution_date}}-{{try_
124124
elasticsearch_end_of_log_mark = end_of_log
125125
```
126126

127+
The previous setting of `log_task_reader` is not needed in many cases now when using the default logging config with remote storages. (Previously it needed to be set to `s3.task` or similar. This is not needed with the default config anymore)
128+
129+
#### Change of per-task log path
130+
131+
With the change to Airflow core to be timezone aware the default log path for task instances will now include timezone information. This will by default mean all previous task logs won't be found. You can get the old behaviour back by setting the following config options:
132+
133+
```
134+
[core]
135+
log_filename_template = {{ ti.dag_id }}/{{ ti.task_id }}/{{ execution_date.strftime("%%Y-%%m-%%dT%%H:%%M:%%S") }}/{{ try_number }}.log
136+
```
137+
127138
## Airflow 1.9
128139

129140
### SSH Hook updates, along with new SSH Operator & SFTP Operator

0 commit comments

Comments
 (0)