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

Improve logging by catching exceptions and printing helpful custom messages #611

Open
amimas opened this issue Oct 10, 2023 · 0 comments
Open

Comments

@amimas
Copy link
Collaborator

amimas commented Oct 10, 2023

This issue is created from the following discussion thread in a PR:

#582 (comment)

Currently, exceptions are not being caught. GitLabForm will exit or continue based on whether --terminate flag is set or not. If it is set, the CLI will exit right away. Otherwise (default) it will print the exception and continue with rest of the process.

It might be good to catch the exceptions and then log custom messages about what happened or hints about how to fix it. For debugging purpose, the exception trace should be printed/logged as well.

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

No branches or pull requests

1 participant