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 a3ea1d96b4
commit 7aa7bad986

View file

@ -104,8 +104,9 @@ public class DeleteExpiredDomainsAction implements Runnable {
runLocked(); runLocked();
response.setStatus(SC_OK); response.setStatus(SC_OK);
} catch (Exception e) { } catch (Exception e) {
logger.atSevere().withCause(e).log("Errored out during execution.");
response.setStatus(SC_INTERNAL_SERVER_ERROR); 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; return null;
}; };