Don't log premium list nomulus tool usage errors as SEVERE

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=149661618
This commit is contained in:
mcilwain 2017-03-09 09:42:25 -08:00 committed by Ben McIlwain
parent ad840ad4d6
commit 3b2a014524

View file

@ -38,11 +38,12 @@ public abstract class CreateOrUpdatePremiumListAction implements Runnable {
public void run() {
try {
savePremiumList();
} catch (RuntimeException e) {
logger.severe(e, e.getMessage());
response.setPayload(ImmutableMap.of(
"error", e.toString(),
"status", "error"));
} catch (IllegalArgumentException iae) {
logger.info(iae, "Usage error in attempting to save premium list from nomulus tool command");
response.setPayload(ImmutableMap.of("error", iae.toString(), "status", "error"));
} catch (Exception e) {
logger.severe(e, "Unexpected error saving premium list from nomulus tool command");
response.setPayload(ImmutableMap.of("error", e.toString(), "status", "error"));
}
}