1
0
mirror of https://github.com/google/nomulus synced 2026-01-06 21:47:31 +00:00

Actually log the error in DeleteExpiredDomainsAction (#985)

* Actually log the error in DeleteExpiredDomainsAction
This commit is contained in:
Ben McIlwain
2021-03-03 15:21:13 -05:00
committed by GitHub
parent 4ca2c11b20
commit cd415fe846

View File

@@ -104,8 +104,9 @@ public class DeleteExpiredDomainsAction implements Runnable {
runLocked();
response.setStatus(SC_OK);
} catch (Exception e) {
logger.atSevere().withCause(e).log("Errored out during execution.");
response.setStatus(SC_INTERNAL_SERVER_ERROR);
response.setPayload("Encountered error; see GCP logs for full details.");
response.setPayload(String.format("Errored out with cause: %s", e));
}
return null;
};