Add option to panic in test.NewNullLogger to allow testing of
calls to `Fatal*` See #813
This commit is contained in:
@@ -45,6 +45,8 @@ func runHandlers() {
|
||||
}
|
||||
}
|
||||
|
||||
type exitFunc func(int)
|
||||
|
||||
// Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
|
||||
func Exit(code int) {
|
||||
runHandlers()
|
||||
|
||||
Reference in New Issue
Block a user