Skip to content

Commit 56b3d16

Browse files
committed
Fix logging lack param
1 parent 3731d78 commit 56b3d16

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ classes
2323
package-lock.json
2424
node_modules
2525
.run
26-
*.log
2726

2827
h2/db.mv.db
2928

eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/ThreadPoolHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void printState(ThreadPoolExecutor threadPool) {
3434
log.info("The ThreadPool's state==================");
3535
log.info("Shutdown | Terminating | Terminated: {} | {} | {}", threadPool.isShutdown(), threadPool.isTerminating(), threadPool.isTerminated());
3636
log.info("Active Threads: " + threadPool.getActiveCount());
37-
log.info("Completed Tasks / Tasks: {} / {}" + threadPool.getCompletedTaskCount(), threadPool.getTaskCount());
37+
log.info("Completed Tasks / Tasks: {} / {}", threadPool.getCompletedTaskCount(), threadPool.getTaskCount());
3838
log.info("Queue Size: " + threadPool.getQueue().size());
3939
log.info("Core Pool Size: " + threadPool.getCorePoolSize());
4040
log.info("Maximum Pool Size: " + threadPool.getMaximumPoolSize());

eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/client/common/RequestContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void finish(Package msg) {
7676

7777
public static RequestContext context(Object key, Package request, CountDownLatch latch) throws Exception {
7878
RequestContext c = new RequestContext(key, request, latch);
79-
log.info("_RequestContext|create|key=", key);
79+
log.info("_RequestContext|create|key={}", key);
8080
return c;
8181
}
8282

eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/demo/SyncPubClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void main(String[] args) throws Exception {
3838
Package rr = pubClient.rr(MessageUtils.rrMesssage("TEST-TOPIC-TCP-SYNC", i), 3000);
3939
if (rr.getBody() instanceof EventMeshMessage) {
4040
String body = ((EventMeshMessage) rr.getBody()).getBody();
41-
log.info("rrMessage: ", body, " ", "rr-reply-------------------------------------------------{}", rr);
41+
log.info("rrMessage: " + body + " " + "rr-reply-------------------------------------------------" + rr);
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)