Skip to content

Commit

Permalink
fix: ClassNotFoundException: org.slf4j.LoggerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Nov 14, 2024
1 parent 62f675f commit f645d22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion java/connector-node/risingwave-connector-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
Expand All @@ -59,6 +62,8 @@
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_httpserver</artifactId>
</dependency>

<!-- test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit f645d22

Please sign in to comment.