This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 123b1be6585 Remove unused legacy action logging helper (#72324)
123b1be6585 is described below
commit 123b1be658527d5fafad4736254a07a42da6dd3f
Author: Aaron Chen <[email protected]>
AuthorDate: Mon Sep 7 18:13:16 2026 +0800
Remove unused legacy action logging helper (#72324)
---
.../src/airflow/utils/log/action_logger.py | 26 ----------------------
scripts/cov/core_coverage.py | 1 -
2 files changed, 27 deletions(-)
diff --git a/airflow-core/src/airflow/utils/log/action_logger.py
b/airflow-core/src/airflow/utils/log/action_logger.py
deleted file mode 100644
index 66e71c46538..00000000000
--- a/airflow-core/src/airflow/utils/log/action_logger.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-from __future__ import annotations
-
-
-def action_event_from_permission(prefix: str, permission: str) -> str:
- if permission.startswith("can_"):
- permission = permission[4:]
- if prefix:
- return f"{prefix}.{permission}"
- return permission
diff --git a/scripts/cov/core_coverage.py b/scripts/cov/core_coverage.py
index fdb6f6b457c..b7096335a43 100644
--- a/scripts/cov/core_coverage.py
+++ b/scripts/cov/core_coverage.py
@@ -112,7 +112,6 @@ files_not_fully_covered = [
"airflow-core/src/airflow/utils/file.py",
"airflow-core/src/airflow/utils/helpers.py",
"airflow-core/src/airflow/utils/json.py",
- "airflow-core/src/airflow/utils/log/action_logger.py",
"airflow-core/src/airflow/utils/log/colored_log.py",
"airflow-core/src/airflow/utils/log/file_processor_handler.py",
"airflow-core/src/airflow/utils/log/file_task_handler.py",