[
https://issues.apache.org/jira/browse/AIRFLOW-3139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788052#comment-16788052
]
ASF subversion and git services commented on AIRFLOW-3139:
----------------------------------------------------------
Commit 6982393f178054ddb3eb5b5fb04d696dfb98dff8 in airflow's branch
refs/heads/v1-10-stable from Xiaodong
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6982393 ]
[AIRFLOW-3139] include parameters into log.info in SQL operators, if any (#3986)
For all SQL-operators based on DbApiHook, sql command itself is printed
into log.info. But if parameters are used for the sql command, the
parameters would not be included in the printing. This makes the log
less useful.
This commit ensures that the parameters are also printed into the
log.info, if any.
> Include parameters into log.info for SQL-operators if any
> ---------------------------------------------------------
>
> Key: AIRFLOW-3139
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3139
> Project: Apache Airflow
> Issue Type: Improvement
> Components: operators
> Reporter: Xiaodong DENG
> Assignee: Xiaodong DENG
> Priority: Minor
> Fix For: 1.10.3
>
> Attachments: Screen Shot 2018-10-02 at 3.24.21 PM.png
>
>
> For SQL-operators based on {color:#a6e22e}DbApiHook{color}, like
> SqliteOperator, PostgresOperator, the SQL command itself will be printed into
> log INFO.
> But if parameters are used for the sql command, the parameters are not
> printed. This makes the logging less useful.
>
> *Example:*
> !Screen Shot 2018-10-02 at 3.24.21 PM.png|width=818,height=61!
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)