Skip to content

Commit

Permalink
Merge pull request #9482 from yyforyongyu/itest-log-ts
Browse files Browse the repository at this point in the history
lntest: log timestamp when printing errors
  • Loading branch information
yyforyongyu authored Feb 6, 2025
2 parents bac699d + 5f4716c commit 457a245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lntest/node/harness_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ func (hn *HarnessNode) KillAndWait() error {

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

Expand Down

0 comments on commit 457a245

Please sign in to comment.