lntest: log timestamp when printing errors

This commit is contained in:
yyforyongyu committed 2025-02-05 22:51:46 +08:00
1 parent bac699df8f
commit 5f4716c699
1 file changed
+2 -2
+2 -2
View File
@@ -823,8 +823,8 @@ func (hn *HarnessNode) KillAndWait() error {
// printErrf prints an error to the console. // printErrf prints an error to the console.
func (hn *HarnessNode) printErrf(format string, a ...interface{}) { func (hn *HarnessNode) printErrf(format string, a ...interface{}) {
fmt.Printf("itest error from [%s:%s]: %s\n", //nolint:forbidigo fmt.Printf("%v: itest error from [%s:%s]: %s\n", //nolint:forbidigo
hn.Cfg.LogFilenamePrefix, hn.Cfg.Name, time.Now().UTC(), hn.Cfg.LogFilenamePrefix, hn.Cfg.Name,
fmt.Sprintf(format, a...)) fmt.Sprintf(format, a...))
} }