From 3640354d68a4d25184c06439b0a6d46705724d88 Mon Sep 17 00:00:00 2001 From: dev-mlb <19797865+dev-mlb@users.noreply.github.com> Date: Sat, 14 Sep 2024 12:00:29 -0400 Subject: [PATCH] errorprone :: fix sysout ServiceProviderPlaceGetTLDTest --- .../java/emissary/place/ServiceProviderPlaceGetTLDTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/emissary/place/ServiceProviderPlaceGetTLDTest.java b/src/test/java/emissary/place/ServiceProviderPlaceGetTLDTest.java index 0ac50eb668..21cee67536 100644 --- a/src/test/java/emissary/place/ServiceProviderPlaceGetTLDTest.java +++ b/src/test/java/emissary/place/ServiceProviderPlaceGetTLDTest.java @@ -10,6 +10,8 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.ArrayList; @@ -59,6 +61,8 @@ void testGettingTLDThroughPlace() throws Exception { private static final class PlaceTest extends ServiceProviderPlace { + private static final Logger logger = LoggerFactory.getLogger(PlaceTest.class); + public PlaceTest() throws IOException { super(); } @@ -69,7 +73,7 @@ public void process(IBaseDataObject d) { if (p != null && p.hasParameter("PARENT_INFO")) { d.putParameter("CHILD_INFO", p.getStringParameter("PARENT_INFO").toUpperCase(Locale.getDefault())); } else { - System.err.println("COuld not get parent " + p); + logger.warn("Could not get parent {}", p); } } }