randr97 commented on a change in pull request #9331:
URL: https://github.com/apache/airflow/pull/9331#discussion_r441736516



##########
File path: airflow/www/views.py
##########
@@ -679,62 +680,53 @@ def get_logs_with_metadata(self, session=None):
 
             return response
 
-        logger = logging.getLogger('airflow.task')
-        task_log_reader = conf.get('logging', 'task_log_reader')
-        handler = next((handler for handler in logger.handlers
-                        if handler.name == task_log_reader), None)
+        task_log_reader = TaskLogReader()
+        if not task_log_reader.is_supported:
+            return jsonify(
+                messaege="Task log handler does not support read logs.",
+                errur=True,

Review comment:
       ```suggestion
                   error=True,
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to