Merge pull request #9482 from yyforyongyu/itest-log-ts
lntest: log timestamp when printing errors
This commit is contained in:
1 file changed
+2
-2
@@ -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...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user