Skip to content

Commit 457a245

Browse files
authored
Merge pull request #9482 from yyforyongyu/itest-log-ts
lntest: log timestamp when printing errors
2 parents bac699d + 5f4716c commit 457a245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lntest/node/harness_node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ func (hn *HarnessNode) KillAndWait() error {
823823

824824
// printErrf prints an error to the console.
825825
func (hn *HarnessNode) printErrf(format string, a ...interface{}) {
826-
fmt.Printf("itest error from [%s:%s]: %s\n", //nolint:forbidigo
827-
hn.Cfg.LogFilenamePrefix, hn.Cfg.Name,
826+
fmt.Printf("%v: itest error from [%s:%s]: %s\n", //nolint:forbidigo
827+
time.Now().UTC(), hn.Cfg.LogFilenamePrefix, hn.Cfg.Name,
828828
fmt.Sprintf(format, a...))
829829
}
830830

0 commit comments

Comments
 (0)