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/20 09:08:39 UTC
[plc4x] 01/03: refactor(plc4go/spi): use getOrLeaveBool for high log precision too
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 8535bef7c72829b9b4f019fec1f56cea5f461cbf
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Jun 20 10:03:37 2023 +0200
refactor(plc4go/spi): use getOrLeaveBool for high log precision too
---
plc4go/spi/testutils/TestUtils.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4go/spi/testutils/TestUtils.go b/plc4go/spi/testutils/TestUtils.go
index 492339df42..52651d8ead 100644
--- a/plc4go/spi/testutils/TestUtils.go
+++ b/plc4go/spi/testutils/TestUtils.go
@@ -130,7 +130,7 @@ var (
)
func init() {
- highLogPrecision = os.Getenv("PLC4X_TEST_HIGH_TEST_LOG_PRECISION") == "true"
+ getOrLeaveBool("PLC4X_TEST_HIGH_TEST_LOG_PRECISION", &highLogPrecision)
if highLogPrecision {
zerolog.TimeFieldFormat = time.RFC3339Nano
}