mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Actually log the error in DeleteExpiredDomainsAction (#985)
* Actually log the error in DeleteExpiredDomainsAction
This commit is contained in:
parent
a3ea1d96b4
commit
7aa7bad986
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue