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

   Add debug logging before/after API calls and fix exception handling
   in the DynamoDB hook (`write_batch_data` and `get_import_status`).
   
   **Debug logging** — follows the pattern established by the Airbyte provider
   in #51503. Logs table loading, batch write start/complete, and
   `describe_import` calls with response details. All logs are at `DEBUG`
   level so they are no-ops unless explicitly enabled.
   
   **Exception handling fixes:**
   - Add `from e` exception chaining to preserve `__cause__` so tracebacks
     show the full causal chain instead of "During handling of the above
     exception, another exception occurred"
   - Replace `raise e` with bare `raise` in `get_import_status` to avoid
     adding a misleading extra frame to the traceback
   - Include `import_arn` in the `ImportNotFoundException` error message
     for easier debugging
   
   **Variable naming cleanup:**
   - Rename `general_error` → `e` for consistency within the file
   - Rename `describe_import` → `response` to avoid shadowing the API
     method name
   
   Part of the [Debugging Improvements — Airflow 
3](https://github.com/orgs/apache/projects/329) initiative.
   
   related: #51503
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Claude Opus 4.6)
   
   Generated-by: Claude Code (Claude Opus 4.6) 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: [email protected]

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

Reply via email to