diff options
author | Axel Howind <axh@apache.org> | 2024-02-21 21:28:04 +0000 |
---|---|---|
committer | Axel Howind <axh@apache.org> | 2024-02-21 21:28:04 +0000 |
commit | 39a1ced25e6b5d3f600472d692702ec7ca01829b (patch) | |
tree | 3e8fb0bf5445785d23ad684876788f1b7f7905a7 /poi/src/main | |
parent | cb10857970c5013b133ec1cf3b625126e387bdfb (diff) | |
download | poi-39a1ced25e6b5d3f600472d692702ec7ca01829b.tar.gz poi-39a1ced25e6b5d3f600472d692702ec7ca01829b.zip |
fix Logging issues:
- don't use foreign class in Logger initialization
- update log statements to use MessageFormat syntax
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src/main')
-rw-r--r-- | poi/src/main/java/org/apache/poi/ss/format/CellFormat.java | 2 | ||||
-rw-r--r-- | poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellFormat.java b/poi/src/main/java/org/apache/poi/ss/format/CellFormat.java index bf0bc110ca..c95caca273 100644 --- a/poi/src/main/java/org/apache/poi/ss/format/CellFormat.java +++ b/poi/src/main/java/org/apache/poi/ss/format/CellFormat.java @@ -192,7 +192,7 @@ public class CellFormat { parts.add(new CellFormatPart(locale, valueDesc)); } catch (RuntimeException e) { - LOG.log(Level.WARN, "Invalid format: " + CellFormatter.quote(m.group()), e); + LOG.warn("Invalid format: {}", CellFormatter.quote(m.group()), e); parts.add(null); } } diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java index 879884d4a5..8a0232bb4f 100644 --- a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java +++ b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java @@ -256,7 +256,7 @@ public class CellFormatPart { return null; Color c = NAMED_COLORS.get(cdesc); if (c == null) { - LOG.warn("Unknown color: " + quote(cdesc)); + LOG.warn("Unknown color: {}", quote(cdesc)); } return c; } |