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

Change top-level exception handling in scripts #1488

Merged
merged 3 commits into from
Jan 28, 2021

Conversation

jtpalmer
Copy link
Contributor

@jtpalmer jtpalmer commented Jan 27, 2021

Description

Replaces use of the logger with writing directly to STDERR.

Motivation and Context

This code may run before the logger object has been created so the errors aren't logged. This will at least output the error messages. I recently ran into this issue and noticed that some of the scripts are already writing to STDERR in this situation.

Tests performed

Updated tests.

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@jtpalmer jtpalmer added bug Bugfixes Category:General General labels Jan 27, 2021
@jtpalmer jtpalmer added this to the 9.5.0 milestone Jan 27, 2021
ryanrath
ryanrath previously approved these changes Jan 27, 2021
@jtpalmer jtpalmer merged commit 8ace5f1 into ubccr:xdmod9.5 Jan 28, 2021
@jtpalmer jtpalmer deleted the cli-logging branch January 28, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes Category:General General
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants