Skip to content

Commit 39ee3fa

Browse files
authored
AWS Config, log content length and not body (#201)
Not log the body, even at trace level
1 parent ed8f6ee commit 39ee3fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

avaje-aws-appconfig/src/main/java/io/avaje/config/appconfig/AppConfigPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ private void performReload() {
110110
} else {
111111
String contentType = result.contentType();
112112
if (log.isLoggable(TRACE)) {
113-
log.log(TRACE, "AwsAppConfig fetched version:{0} contentType:{1} body:{2}", result.version(), contentType, result.body());
113+
int contentLength = result.body().length();
114+
log.log(TRACE, "AwsAppConfig fetched version:{0} contentType:{1} contentLength:{2,number,#}", result.version(), contentType, contentLength);
114115
}
115116
Map<String, String> keyValues = parse(result);
116117
configuration.eventBuilder("AwsAppConfig")

0 commit comments

Comments
 (0)