mirror of
https://github.com/google/nomulus.git
synced 2025-06-13 07:54:46 +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() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
savePremiumList();
|
savePremiumList();
|
||||||
} catch (RuntimeException e) {
|
} catch (IllegalArgumentException iae) {
|
||||||
logger.severe(e, e.getMessage());
|
logger.info(iae, "Usage error in attempting to save premium list from nomulus tool command");
|
||||||
response.setPayload(ImmutableMap.of(
|
response.setPayload(ImmutableMap.of("error", iae.toString(), "status", "error"));
|
||||||
"error", e.toString(),
|
} catch (Exception e) {
|
||||||
"status", "error"));
|
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