Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log exceptions in DBOS._launch #121

Merged
merged 2 commits into from
Sep 26, 2024
Merged

log exceptions in DBOS._launch #121

merged 2 commits into from
Sep 26, 2024

Conversation

devhawk
Copy link
Contributor

@devhawk devhawk commented Sep 26, 2024

No description provided.

dbos/dbos.py Outdated
handler.flush()
add_otlp_to_all_loggers()
except Exception:
dbos_logger.exception("DBOS failed to launch")
Copy link
Contributor

@kraftp kraftp Sep 26, 2024

Choose a reason for hiding this comment

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

Let's also log the traceback like the other exception loggers

f"Exception encountered in asynchronous workflow: {traceback.format_exc()}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so use error instead of exception?

@devhawk devhawk merged commit 93d8bc9 into main Sep 26, 2024
4 checks passed
@devhawk devhawk deleted the devhawk/launch-log-exception branch September 26, 2024 20:47
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.

2 participants