Skip to content

Commit 82f351d

Browse files
committed
[ITA-2088] Fix bug generated by GitHub
1 parent 2589b0a commit 82f351d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servicebuilder-activemq/src/main/java/no/obos/util/servicebuilder/mq/ActiveMqListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ private void handleMessage(MessageHandler handler, Message message, Session sess
112112
}
113113

114114
static String truncateMessageForLogging(String text) {
115-
if (StringUtils.isEmpty(text) || text.length() <= MAX_LOGGED_PER_MESSAGE) {
115+
if (StringUtils.isEmpty(text) || text.length() <= MAX_LENGTH_PER_MESSAGE) {
116116
return text;
117117
}
118118
try {
119119
log.info("Truncating message for logging...");
120-
String truncatedText = text.substring(0, MAX_LOGGED_PER_MESSAGE);
120+
String truncatedText = text.substring(0, MAX_LENGTH_PER_MESSAGE);
121121
String dataKey = "\"data\":";
122122
if (truncatedText.contains(dataKey)) {
123123
return truncatedText.substring(0, truncatedText.indexOf(dataKey)) + dataKey + "\"...\"}";

0 commit comments

Comments
 (0)