improved logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank
2019-03-29 15:49:25 +01:00
parent 7695f42e20
commit daed37587e
15 changed files with 142 additions and 207 deletions

View File

@@ -118,6 +118,14 @@ func Eexit(err error, format string, args ...interface{}) {
}
}
// Exit is shorthand for
// Log.Errorf(...)
// os.Exit(1)
func Exit(format string, args ...interface{}) {
E(format, args...)
os.Exit(1)
}
// Perr is shorthand for
// if err != nil {
// Log.Panicf(...)