mirror of https://github.com/apache/druid.git
Do not log sensitive property value if JsonConfigurator fails to parse (#11787)
* Do not log property value if JsonConfigurator fails to parse * Add comment to explain log change * Fix log language
This commit is contained in:
parent
b6b42d3936
commit
7352c83e11
|
@ -100,7 +100,9 @@ public class JsonConfigurator
|
|||
value = jsonMapper.readValue(modifiedPropValue, Object.class);
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.info(e, "Unable to parse [%s]=[%s] as a json object, using as is.", prop, propValue);
|
||||
// Do not log exception message or the property value as it might
|
||||
// expose sensitive information
|
||||
log.info("Unable to parse value of property [%s] as a json object, using as is.", prop);
|
||||
value = propValue;
|
||||
}
|
||||
hieraricalPutValue(propertyPrefix, prop, prop.substring(propertyBase.length()), value, jsonMap);
|
||||
|
|
Loading…
Reference in New Issue