From 8df99ee397c8d669af21c605e31c70f440ef00cc Mon Sep 17 00:00:00 2001 From: Patrick Gotthard Date: Fri, 26 Jan 2024 07:27:34 +0100 Subject: [PATCH] Fix time unit in log message for slow acknowledgements --- .../listener/acknowledgement/SqsAcknowledgementExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/listener/acknowledgement/SqsAcknowledgementExecutor.java b/spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/listener/acknowledgement/SqsAcknowledgementExecutor.java index ddb85e251..5fea6ad5b 100644 --- a/spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/listener/acknowledgement/SqsAcknowledgementExecutor.java +++ b/spring-cloud-aws-sqs/src/main/java/io/awspring/cloud/sqs/listener/acknowledgement/SqsAcknowledgementExecutor.java @@ -122,7 +122,7 @@ private void logAckResult(Collection> messagesToAck, Throwable t, Sto watch.stop(); long totalTimeMillis = watch.getTotalTimeMillis(); if (totalTimeMillis > 10000) { - logger.warn("Acknowledgement operation took {} seconds to finish in queue {} for messages {}", + logger.warn("Acknowledgement operation took {}ms to finish in queue {} for messages {}", totalTimeMillis, this.queueName, MessageHeaderUtils.getId(messagesToAck)); } if (t != null) {