You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/06/16 16:46:18 UTC
[plc4x] 01/07: test(plc4go/spi): only set timeformat to nano when flag is set
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 40cd416bca8f9436d348cd8805db0dbcf424ec67
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jun 16 15:21:11 2023 +0200
test(plc4go/spi): only set timeformat to nano when flag is set
---
plc4go/spi/testutils/TestUtils.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/plc4go/spi/testutils/TestUtils.go b/plc4go/spi/testutils/TestUtils.go
index 3829067a1c..e3937a7ff3 100644
--- a/plc4go/spi/testutils/TestUtils.go
+++ b/plc4go/spi/testutils/TestUtils.go
@@ -140,7 +140,9 @@ func ProduceTestingLogger(t *testing.T) zerolog.Logger {
},
func(w *zerolog.ConsoleWriter) {
- w.TimeFormat = time.StampNano
+ if highLogPrecision {
+ w.TimeFormat = time.StampNano
+ }
},
),
)