mirror of
https://github.com/google/nomulus.git
synced 2025-06-11 23:14:45 +02: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:
parent
ad840ad4d6
commit
3b2a014524
1 changed files with 6 additions and 5 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue