mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Log RDAP output formatting failures
Also, a couple tests are reworked to make their output more understandable in case of failure. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176670087
This commit is contained in:
@@ -179,7 +179,8 @@ public abstract class RdapActionBase implements Runnable {
|
||||
response.setPayload(new JacksonFactory().toPrettyString(rdapJson));
|
||||
return;
|
||||
} catch (IOException e) {
|
||||
// On exception, fall back to unformatted output
|
||||
logger.warning(
|
||||
e, "Unable to pretty-print RDAP JSON response; falling back to unformatted output.");
|
||||
}
|
||||
}
|
||||
response.setPayload(JSONValue.toJSONString(rdapJson));
|
||||
|
||||
Reference in New Issue
Block a user