You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
311 B
15 lines
311 B
package util
|
|
|
|
import "github.com/chrislusf/seaweedfs/weed/glog"
|
|
|
|
func LogFatalIfError(err error, format string, args ...interface{}) {
|
|
if err != nil {
|
|
glog.Fatalf(format, args...)
|
|
}
|
|
}
|
|
|
|
func LogFatalIf(condition bool, format string, args ...interface{}) {
|
|
if condition {
|
|
glog.Fatalf(format, args...)
|
|
}
|
|
}
|