Skip to content

WDT-639 consistent exit handling across tools #1169

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

Merged
merged 3 commits into from
Aug 16, 2022
Merged

WDT-639 consistent exit handling across tools #1169

merged 3 commits into from
Aug 16, 2022

Conversation

jwgish
Copy link
Contributor

@jwgish jwgish commented Aug 11, 2022

I tried to ensure wherever there was a call to logger.entering() that there was a matching logger.exiting(). Also, all tool exits should now be handled consistently, using either _tool_exit.__log_and_exit() to do a logger.exiting() and tool_exit.end() if there was a __logger.entering() or simply tool_exit.end() if not.
Also, removed duplicate code in multiple except blocks, setting an exit code, and after the except blocks, cleaning up temp files and exiting with whatever exit code was set.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Aug 11, 2022
@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When singing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

@oracle-contributor-agreement oracle-contributor-agreement bot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Aug 12, 2022
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
4.5% 4.5% Duplication

@ddsharpe ddsharpe merged commit 985e379 into main Aug 16, 2022
@ddsharpe ddsharpe deleted the WDT-639 branch August 16, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants