You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/03/05 23:51:31 UTC
[airflow] branch master updated: Remove unused usage of logging
module (#14632)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 201d6e4 Remove unused usage of logging module (#14632)
201d6e4 is described below
commit 201d6e43f31f2816f4c60ccd225092dc9e6887bd
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Fri Mar 5 23:51:18 2021 +0000
Remove unused usage of logging module (#14632)
Unless I am missing something the logging module was imported in the following files but was not used:
- airflow/api_connexion/endpoints/dag_source_endpoint.py
- airflow/api_connexion/endpoints/version_endpoint.py
---
airflow/api_connexion/endpoints/dag_source_endpoint.py | 3 ---
airflow/api_connexion/endpoints/version_endpoint.py | 3 ---
2 files changed, 6 deletions(-)
diff --git a/airflow/api_connexion/endpoints/dag_source_endpoint.py b/airflow/api_connexion/endpoints/dag_source_endpoint.py
index 0281b22..fd7c3ff 100644
--- a/airflow/api_connexion/endpoints/dag_source_endpoint.py
+++ b/airflow/api_connexion/endpoints/dag_source_endpoint.py
@@ -14,7 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-import logging
from flask import Response, current_app, request
from itsdangerous import BadSignature, URLSafeSerializer
@@ -25,8 +24,6 @@ from airflow.api_connexion.schemas.dag_source_schema import dag_source_schema
from airflow.models.dagcode import DagCode
from airflow.security import permissions
-log = logging.getLogger(__name__)
-
@security.requires_access([(permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG_CODE)])
def get_dag_source(file_token: str):
diff --git a/airflow/api_connexion/endpoints/version_endpoint.py b/airflow/api_connexion/endpoints/version_endpoint.py
index 2175f03..cbbe07b 100644
--- a/airflow/api_connexion/endpoints/version_endpoint.py
+++ b/airflow/api_connexion/endpoints/version_endpoint.py
@@ -15,15 +15,12 @@
# specific language governing permissions and limitations
# under the License.
-import logging
from typing import NamedTuple, Optional
import airflow
from airflow.api_connexion.schemas.version_schema import version_info_schema
from airflow.utils.platform import get_airflow_git_version
-log = logging.getLogger(__name__)
-
class VersionInfo(NamedTuple):
"""Version information"""