#3265 Fix for Update Query logging to trim large values in bind log

This commit is contained in:
Rob Bygrave
2023-11-21 22:32:35 +13:00
parent cbca940611
commit c48e5428c5
2 changed files with 13 additions and 4 deletions
@@ -119,7 +119,11 @@ public final class Binder {
if (param.isEncryptionKey()) {
bindLog.append("****");
} else {
bindLog.append(value);
String sv = String.valueOf(value);
if (sv.length() > 50) {
sv = sv.substring(0, 47) + "...";
}
bindLog.append(sv);
}
}
if (value instanceof Collection) {