Reduce logging level to warning for missing DAIs

This is expected as part of the normal way that this mapreduce runs, so it's not
worth outputting an error.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=228553579
This commit is contained in:
mcilwain 2019-01-09 11:22:17 -08:00 committed by Ben McIlwain
parent 02174a2cff
commit d0c73efac0

View file

@ -82,8 +82,13 @@ public class KillAllDomainApplicationsAction implements Runnable {
EppResourceIndex eri =
ofy().load().entity(EppResourceIndex.create(applicationKey)).now();
// This case is common and happens when the same domain name was applied for
// multiple times (i.e. there are multiple domain applications sharing a name). The
// first one that the mapreduce happens to process will delete the DAI and then
// subsequent ones will see the entity as already deleted, which is safe and
// expected.
if (dai == null) {
logger.atSevere().log(
logger.atWarning().log(
"Missing domain application index for application %s.", applicationKey);
getContext().incrementCounter("missing domain application indexes");
} else {