You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "PolitePp (via GitHub)" <gi...@apache.org> on 2026/09/01 06:15:21 UTC

[PR] UI: Add toggle to show or hide log levels in task logs [airflow]

PolitePp opened a new pull request, #72363:
URL: https://github.com/apache/airflow/pull/72363

    Right now when we want to copy logs from the task instance we should remove some additional log parts like "INFO - " or timestamp. For timestamp there's a button to hide it. I suggest to add the similar button for hiding log level. It will allow users to copy-paste log information without additional formating. They will see the same log as they would see it locally.
   
   * closes: #72360
   
   https://github.com/user-attachments/assets/dc63dfd5-de8e-4497-9355-2b88cc7997fa
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Cursor
   
   Generated-by: Cursor following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #72363:
URL: https://github.com/apache/airflow/pull/72363#discussion_r3988097429


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogHeader.tsx:
##########
@@ -217,6 +221,10 @@ export const TaskLogHeader = ({
                 <MdAccessTime /> {showTimestamp ? translate("timestamp.hide") : translate("timestamp.show")}
                 <Menu.ItemCommand>{translate("timestamp.hotkey")}</Menu.ItemCommand>
               </Menu.Item>
+              <Menu.Item data-testid="log-settings-log-level" onClick={toggleLogLevel} value="log-level">
+                <MdCode /> {showLogLevel ? translate("logLevel.hide") : translate("logLevel.show")}

Review Comment:
   Can you chose a different icon please, this is the same as 'show source' option.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #72363:
URL: https://github.com/apache/airflow/pull/72363#discussion_r3988134610


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogHeader.tsx:
##########
@@ -217,6 +221,10 @@ export const TaskLogHeader = ({
                 <MdAccessTime /> {showTimestamp ? translate("timestamp.hide") : translate("timestamp.show")}
                 <Menu.ItemCommand>{translate("timestamp.hotkey")}</Menu.ItemCommand>
               </Menu.Item>
+              <Menu.Item data-testid="log-settings-log-level" onClick={toggleLogLevel} value="log-level">
+                <MdCode /> {showLogLevel ? translate("logLevel.hide") : translate("logLevel.show")}

Review Comment:
   <img width="278" height="300" alt="Screenshot 2026-09-11 at 12 10 38" src="https://github.com/user-attachments/assets/24e5bfb7-58f9-4943-a6eb-402220ceb781" />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "PolitePp (via GitHub)" <gi...@apache.org>.
PolitePp commented on code in PR #72363:
URL: https://github.com/apache/airflow/pull/72363#discussion_r3988954390


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogHeader.tsx:
##########
@@ -217,6 +221,10 @@ export const TaskLogHeader = ({
                 <MdAccessTime /> {showTimestamp ? translate("timestamp.hide") : translate("timestamp.show")}
                 <Menu.ItemCommand>{translate("timestamp.hotkey")}</Menu.ItemCommand>
               </Menu.Item>
+              <Menu.Item data-testid="log-settings-log-level" onClick={toggleLogLevel} value="log-level">
+                <MdCode /> {showLogLevel ? translate("logLevel.hide") : translate("logLevel.show")}

Review Comment:
   The button has been updated
   <img width="207" height="176" alt="image" src="https://github.com/user-attachments/assets/61b9aef4-2a93-43e4-9e72-64762fc20d72" />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #72363:
URL: https://github.com/apache/airflow/pull/72363#issuecomment-5797064728

   Awesome work, congrats on your first merged pull request! You are invited to check our [Issue Tracker](https://github.com/apache/airflow/issues) for additional contributions.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi merged PR #72363:
URL: https://github.com/apache/airflow/pull/72363


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] UI: Add toggle to show or hide log levels in task logs [airflow]

Posted by "PolitePp (via GitHub)" <gi...@apache.org>.
PolitePp commented on PR #72363:
URL: https://github.com/apache/airflow/pull/72363#issuecomment-5793865203

   @bbovenzi sorry, cicd failed on 
   `  80:51  error  Move arrow function 'renderWithLevel' to the outer scope  unicorn/consistent-function-scoping`
   
   I fixed it. Can you approve and start pipeline again, please?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org