From 982a042c110eec3b3dc3c4ceb8c1cd097fb9b849 Mon Sep 17 00:00:00 2001 From: Sasha Sheikin Date: Fri, 15 Nov 2024 17:49:03 +0100 Subject: [PATCH] Initialize logs for Product Tests --- tempto-core/pom.xml | 6 ++++++ .../initialization/TestInitializationListenerJUnit.java | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/tempto-core/pom.xml b/tempto-core/pom.xml index 94d40abf..de369b3e 100644 --- a/tempto-core/pom.xml +++ b/tempto-core/pom.xml @@ -67,6 +67,12 @@ commons-io + + io.airlift + log-manager + 284 + + io.trino.hive hive-apache diff --git a/tempto-core/src/main/java/io/trino/tempto/internal/initialization/TestInitializationListenerJUnit.java b/tempto-core/src/main/java/io/trino/tempto/internal/initialization/TestInitializationListenerJUnit.java index 947938d2..be5c8bfb 100644 --- a/tempto-core/src/main/java/io/trino/tempto/internal/initialization/TestInitializationListenerJUnit.java +++ b/tempto-core/src/main/java/io/trino/tempto/internal/initialization/TestInitializationListenerJUnit.java @@ -17,6 +17,7 @@ import com.google.common.collect.ImmutableList; import com.google.common.collect.Ordering; import com.google.inject.Module; +import io.airlift.log.Logging; import io.trino.tempto.TemptoPlugin; import io.trino.tempto.configuration.Configuration; import io.trino.tempto.context.TestContext; @@ -50,6 +51,10 @@ public class TestInitializationListenerJUnit { private static final Logger LOGGER = getLogger(TestInitializationListenerJUnit.class); + static { + Logging.initialize(); + } + private final List suiteModuleProviders; private final Configuration configuration;