Ironankit525 opened a new pull request, #62732:
URL: https://github.com/apache/airflow/pull/62732
**What happened:**
In
`airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/consume.py`,
the `error_callback` function handles errors from `confluent_kafka`. For
non-authentication errors, it uses a bare `print()` statement, which bypasses
Airflow's logging infrastructure.
**Fix:**
Replaced `print("Exception received: ", err)` with `log.error("Exception
received from Kafka: %s", err)` using a module-level
`logging.getLogger(__name__)`. This ensures errors are properly captured by
Airflow's logging handlers and log aggregation systems.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]