INNER CODE UNIT · Go
Warnf
rancher/system-upgrade-controller · e2e/framework/logging.go:20
func Warnf(format string, args ...interface{}) {
Logf("WARN", format, args)
}
func Errorf(format string, args ...interface{}) {
Logf("ERRO", format, args)
}
// Failf logs the fail info.
func Failf(format string, args ...interface{}) {
FailfWithOffset(1, format, args...)
}
// FailfWithOffset calls "Fail" and logs the error at "offset" levels above its caller
// (for example, for call chain f -> g -> FailfWithOffset(1, ...) error would be logged for "f").
func FailfWithOffset(offset int, format string, args ...interface{}) {
msg := fmt.Sprintf(format, args...)
Logf("FAIL", msg)