mirror of
https://github.com/google/nomulus
synced 2026-01-06 13:36:48 +00:00
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:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user