Commit 65bff3d1 authored by Marek Grabowski's avatar Marek Grabowski

Merge pull request #12252 from alex-mohr/stamp

Add timestamps to test info logs
parents 8580e17f ea0c35b7
......@@ -195,16 +195,20 @@ type RCConfig struct {
MaxContainerFailures *int
}
func nowStamp() string {
return time.Now().Format(time.StampMilli)
}
func Logf(format string, a ...interface{}) {
fmt.Fprintf(GinkgoWriter, "INFO: "+format+"\n", a...)
fmt.Fprintf(GinkgoWriter, nowStamp()+": INFO: "+format+"\n", a...)
}
func Failf(format string, a ...interface{}) {
Fail(fmt.Sprintf(format, a...), 1)
Fail(nowStamp()+": "+fmt.Sprintf(format, a...), 1)
}
func Skipf(format string, args ...interface{}) {
Skip(fmt.Sprintf(format, args...))
Skip(nowStamp() + ": " + fmt.Sprintf(format, args...))
}
func SkipUnlessNodeCountIsAtLeast(minNodeCount int) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment