|
|
@ -736,7 +736,7 @@ var logExitFunc func(error) |
|
|
|
// It flushes the logs and exits the program; there's no point in hanging around.
|
|
|
|
// l.mu is held.
|
|
|
|
func (l *loggingT) exit(err error) { |
|
|
|
fmt.Fprintf(os.Stderr, "log: exiting because of error: %s\n", err) |
|
|
|
fmt.Fprintf(os.Stderr, "glog: exiting because of error: %s\n", err) |
|
|
|
// If logExitFunc is set, we do that instead of exiting.
|
|
|
|
if logExitFunc != nil { |
|
|
|
logExitFunc(err) |
|
|
|