diff --git a/java/connector-node/risingwave-connector-service/pom.xml b/java/connector-node/risingwave-connector-service/pom.xml index ea1ab9bb8898..8ae942d7aca2 100644 --- a/java/connector-node/risingwave-connector-service/pom.xml +++ b/java/connector-node/risingwave-connector-service/pom.xml @@ -38,7 +38,10 @@ com.google.guava guava - + + org.slf4j + slf4j-api + com.google.code.gson gson @@ -59,6 +62,8 @@ io.prometheus simpleclient_httpserver + + junit junit diff --git a/java/connector-node/tracing/src/main/java/com/risingwave/tracing/TracingSlf4jAdapter.java b/java/connector-node/tracing/src/main/java/com/risingwave/tracing/TracingSlf4jAdapter.java index 5ccef41e9ac1..e0aee7633c51 100644 --- a/java/connector-node/tracing/src/main/java/com/risingwave/tracing/TracingSlf4jAdapter.java +++ b/java/connector-node/tracing/src/main/java/com/risingwave/tracing/TracingSlf4jAdapter.java @@ -63,8 +63,8 @@ private void logIfEnabled(int level, String format, Object... arguments) { private void logIfEnabled(int level, String msg, Throwable t) { if (TracingSlf4jImpl.isEnabled(level)) { - String sStackTrace = ExceptionUtils.getStackTrace(t); - TracingSlf4jImpl.event(name, level, String.format("%s: %s", msg, sStackTrace)); + String stackTrace = ExceptionUtils.getStackTrace(t); + TracingSlf4jImpl.event(name, level, String.format("%s: %s", msg, stackTrace)); } }