logging
This commit is contained in:
@ -27,7 +27,7 @@ class PersistenceHelper {
|
|||||||
try {
|
try {
|
||||||
return Long.parseLong(val);
|
return Long.parseLong(val);
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
_log.error("Error formatting " + val + " into a long", nfe);
|
_log.warn("Error formatting " + val + " into a long", nfe);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_log.warn("Key " + prefix + name + " does not exist");
|
_log.warn("Key " + prefix + name + " does not exist");
|
||||||
@ -41,10 +41,10 @@ class PersistenceHelper {
|
|||||||
try {
|
try {
|
||||||
return Double.parseDouble(val);
|
return Double.parseDouble(val);
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
_log.error("Error formatting " + val + " into a double", nfe);
|
_log.warn("Error formatting " + val + " into a double", nfe);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_log.error("Key " + prefix + name + " does not exist");
|
_log.warn("Key " + prefix + name + " does not exist");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user