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
log.failure
Right now we have a pattern of doing this:
log = Logger() try: applicationCode(parameter) except BaseException: log.failure("while doing xyz with {parameter}", parameter=parameter) else: proceed()
This is verbose, error-prone, and kinda reads backwards. Instead, something like this would be nicer:
log = Logger() with log.whenThereIsAnyProblemLogThis("while doing xyz with {parameter}", parameter=parameter) as operation: applicationCode(parameter) if operation.succeeded: proceed()
The text was updated successfully, but these errors were encountered:
Logger.handlingFailures
Successfully merging a pull request may close this issue.
Right now we have a pattern of doing this:
This is verbose, error-prone, and kinda reads backwards. Instead, something like this would be nicer:
The text was updated successfully, but these errors were encountered: