Print key for too long property values

In case of a too long property value in
SettingsToPropertiesMapper, only the value is printed, not
the key.

It makes sense also to print the key making it easier
to find what is causing the problem.

Change-Id: I3cef0d404037d3c515fae116752c4e73c6699b62
This commit is contained in:
Henrik Baard
2022-05-19 15:05:42 +02:00
parent 089c119f4d
commit c12ed61d4a

View File

@@ -238,7 +238,7 @@ public class SettingsToPropertiesMapper {
}
value = "";
} else if (value.length() > SYSTEM_PROPERTY_MAX_LENGTH) {
log(value + " exceeds system property max length.");
log("key=" + key + " value=" + value + " exceeds system property max length.");
return;
}