We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The script_end() method currently emits a hard-coded "Exit 0" line to the log:
redata-commons/redata/commons/logger.py
Lines 183 to 186 in 40acd5c
Adding a parameter to this function will allow the user to pass an exit code for the function to log in place of the default:
def script_end(self, exit_code=0): """Log end of script""" self.log.info(self.asterisk) self.log.info(f"Exit {exit_code}")
This is helpful if the user is calling sys.exit() to pass non-0 exit codes and wishes to record an accurate exit code in the log.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The script_end() method currently emits a hard-coded "Exit 0" line to the log:
redata-commons/redata/commons/logger.py
Lines 183 to 186 in 40acd5c
Adding a parameter to this function will allow the user to pass an exit code for the function to log in place of the default:
This is helpful if the user is calling sys.exit() to pass non-0 exit codes and wishes to record an accurate exit code in the log.
The text was updated successfully, but these errors were encountered: