logger::fatal(...) terminates the program - investigate alternatives #219
Labels
difficulty/01-good-first-issue
Very approachable for new contributors
enhancement/refactor
Improves flexibility/maintainability
Affected Branch
trunk
Basic Diagnostics
I've pulled the latest changes on the affected branch and the issue is still present.
The issue is reproducible in docker
Description
It's surprising to a reader that the logger object has the power to terminate the program when
fatal()
is called.Consider these alternatives to improve code clarity:
exit()
call fromlogger::fatal()
and client to invokeexit(1)
logger::fatal)
takes additional exit code parameterlogger::fatal()
topanic()
orfatal_system_exit()
Code of Conduct
The text was updated successfully, but these errors were encountered: