Skip to content

Conversation

@hallvictoria
Copy link
Contributor

@hallvictoria hallvictoria commented Oct 8, 2025

Description

Log any sub-exceptions that occur instead of only the top-level exception. Improve ModuleNotFound error tracebacks.
Fixes #1682

Example output with these changes:

Sub-exceptions that occur:
image

ModuleNotFound errors:
image

General code error:
image

Fixes #


Pull Request Checklist

Host-Worker Contract

  • Does this PR impact the host-worker contract (e.g., gRPC messages, shared interfaces)?
    • If yes, have the changes been applied to:
      • azure_functions_worker (Python <= 3.12)
      • proxy_worker (Python >= 3.13)
    • If no, please explain why:

Worker Execution Logic

  • Does this PR affect worker execution logic (e.g., function invocation, bindings, lifecycle)?
    If yes, please answer the following:

Python Version Coverage

  • Does this change apply to both Python <=3.12 and 3.13+?
  • If yes, have the changes been made to:
    • azure_functions_worker (Python <= 3.12)
    • runtimes/v1 / runtimes/v2 (Python >= 3.13)
  • If no, please explain why:

Programming Model Compatibility (for Python 3.13+)

  • Does this change apply to both:
    • V1 programming model (runtimes/v1)?
    • V2 programming model (runtimes/v2)?
  • Explanation (if limited to one model):
gavin-aguiar
gavin-aguiar previously approved these changes Oct 9, 2025
@hallvictoria hallvictoria marked this pull request as ready for review October 9, 2025 16:33
@hallvictoria hallvictoria requested a review from vrdmr as a code owner October 9, 2025 16:33
@hallvictoria hallvictoria merged commit 5dbe571 into dev Oct 9, 2025
39 checks passed
@hallvictoria hallvictoria deleted the hallvictoria/log-subexceptions branch October 9, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants