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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}; };