Do not print stacktrace on PUT request (#13)
This commit is contained in:
parent
23f98f190b
commit
c8a2e0784f
@ -732,7 +732,7 @@ public class HTTPVaultConnector implements VaultConnector {
|
|||||||
try {
|
try {
|
||||||
entity = new StringEntity(jsonMapper.writeValueAsString(payload));
|
entity = new StringEntity(jsonMapper.writeValueAsString(payload));
|
||||||
} catch (UnsupportedEncodingException | JsonProcessingException e) {
|
} catch (UnsupportedEncodingException | JsonProcessingException e) {
|
||||||
e.printStackTrace();
|
throw new InvalidRequestException("Payload serialization failed", e);
|
||||||
}
|
}
|
||||||
/* Parse parameters */
|
/* Parse parameters */
|
||||||
put.setEntity(entity);
|
put.setEntity(entity);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user