Skip to content

Commit 22000dd

Browse files
committed
tweak kafka controller response message
Signed-off-by: neo <1100909+neowu@users.noreply.github.com>
1 parent 0aa4094 commit 22000dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply(plugin = "project")
77

88
subprojects {
99
group = "core.framework"
10-
version = "9.2.2"
10+
version = "9.2.2-b0"
1111
repositories {
1212
maven {
1313
url = uri("https://neowu.github.io/maven-repo/")

core-ng/src/main/java/core/framework/internal/web/sys/KafkaController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Response publish(Request request) {
4646
ProducerRecord<byte[], byte[]> record = record(topic, key, body, actionLog);
4747
producer.send(record);
4848

49-
return Response.text(Strings.format("message published, topic={}, key={}, message={}", topic, key, new String(body, UTF_8)));
49+
return Response.text(Strings.format("message published, refId={}, topic={}, key={}, message={}", actionLog.id, topic, key, new String(body, UTF_8)));
5050
}
5151

5252
public Response handle(Request request) throws Exception {
@@ -73,7 +73,7 @@ public Response handle(Request request) throws Exception {
7373
} else {
7474
throw new Error("handler not found, topic=" + topic);
7575
}
76-
return Response.text(Strings.format("message handled, topic={}, key={}, message={}", topic, key, new String(body, UTF_8)));
76+
return Response.text(Strings.format("message handled, id={}, topic={}, key={}, message={}", actionLog.id, topic, key, new String(body, UTF_8)));
7777
}
7878

7979
private Object message(String topic, String key, byte[] body, MessageProcess<Object> process, ActionLog actionLog) throws IOException {

0 commit comments

Comments
 (0)