Repository: logging-log4j2
Updated Branches:
  refs/heads/master f1b263586 -> c66cfd853


[LOG4J2-2053]
Exception java.nio.charset.UnsupportedCharsetException: cp65001 in
2.9.0. Better internal exception message.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/c66cfd85
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c66cfd85
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c66cfd85

Branch: refs/heads/master
Commit: c66cfd853d1f4f87ee91e0997eef07756de73055
Parents: f1b2635
Author: Gary Gregory <[email protected]>
Authored: Wed Oct 4 09:27:31 2017 -0600
Committer: Gary Gregory <[email protected]>
Committed: Wed Oct 4 09:27:31 2017 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/util/PropertiesUtil.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c66cfd85/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
----------------------------------------------------------------------
diff --git 
a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java 
b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
index 66270a5..658ebe2 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
@@ -171,7 +171,8 @@ public final class PropertiesUtil {
         try {
             return prop == null ? defaultValue : Charset.forName(prop);
         } catch (UnsupportedCharsetException e) {
-            LowLevelLogUtil.logException("Unable to get Charset '" + name + 
"', using default " + defaultValue, e);
+            LowLevelLogUtil.logException(
+                    "Unable to get Charset '" + prop + "' for property '" + 
name + "', using default " + defaultValue + " and continuing.", e);
             return defaultValue;
         }
     }

Reply via email to