@@ -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