Skip to content

log all exceptions + log stacktrace#237

Merged
p- merged 1 commit into
mainfrom
p--log-all-exceptions
May 11, 2026
Merged

log all exceptions + log stacktrace#237
p- merged 1 commit into
mainfrom
p--log-all-exceptions

Conversation

@p-
Copy link
Copy Markdown
Contributor

@p- p- commented May 11, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 12:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates async task execution error logging in runner.py to include stack traces when exceptions are returned from asyncio.gather(..., return_exceptions=True).

Changes:

  • Broadened the post-gather result check from “is an Exception” to “is not a bool”.
  • Added exc_info=... to the error log to include exception traceback details.
Show a summary per file
File Description
src/seclab_taskflow_agent/runner.py Adjusts how asyncio.gather results are classified/logged, aiming to log returned exceptions with stack traces.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines +659 to 661
if not isinstance(result, bool):
logging.error(f"Caught exception in Gather: {result}", exc_info=result)
result = False
@p- p- merged commit 4894ba0 into main May 11, 2026
13 checks passed
@p- p- deleted the p--log-all-exceptions branch May 11, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants