From 5f4716c699954ef76751db96b6e1ffb26797f82e Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 5 Feb 2025 22:51:46 +0800 Subject: [PATCH] lntest: log timestamp when printing errors --- lntest/node/harness_node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lntest/node/harness_node.go b/lntest/node/harness_node.go index 0ac74f8779..5f0f5da969 100644 --- a/lntest/node/harness_node.go +++ b/lntest/node/harness_node.go @@ -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...)) }