From 789b0f3312c3707f871a3fb9b362cfe8a11db334 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 Revert? --- tempto-core/pom.xml | 12 ++++++++++++ .../listeners/ProgressLoggingListenerJUnit.java | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/tempto-core/pom.xml b/tempto-core/pom.xml index 94d40abf..797d89a8 100644 --- a/tempto-core/pom.xml +++ b/tempto-core/pom.xml @@ -67,6 +67,18 @@ commons-io + + io.airlift + log-manager + 275 + + + org.slf4j + log4j-over-slf4j + + + + io.trino.hive hive-apache diff --git a/tempto-core/src/main/java/io/trino/tempto/internal/listeners/ProgressLoggingListenerJUnit.java b/tempto-core/src/main/java/io/trino/tempto/internal/listeners/ProgressLoggingListenerJUnit.java index de8cc57c..8a6fb766 100644 --- a/tempto-core/src/main/java/io/trino/tempto/internal/listeners/ProgressLoggingListenerJUnit.java +++ b/tempto-core/src/main/java/io/trino/tempto/internal/listeners/ProgressLoggingListenerJUnit.java @@ -14,6 +14,7 @@ package io.trino.tempto.internal.listeners; +import io.airlift.log.Logging; import org.junit.jupiter.api.extension.AfterAllCallback; import org.junit.jupiter.api.extension.AfterEachCallback; import org.junit.jupiter.api.extension.BeforeAllCallback; @@ -33,6 +34,10 @@ public class ProgressLoggingListenerJUnit { private final static Logger LOGGER = LoggerFactory.getLogger(ProgressLoggingListenerJUnit.class); + static { + Logging.initialize(); + } + private int started; private int succeeded; private int failed;