You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/09/07 02:05:03 UTC

logging-log4j2 git commit: Better failure message.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 46d7cb4c4 -> 809010638


Better failure 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/80901063
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/80901063
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/80901063

Branch: refs/heads/master
Commit: 809010638755cbea79ea1a93204daf2483dba7c7
Parents: 46d7cb4
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Sep 6 22:04:59 2016 -0400
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Sep 6 22:04:59 2016 -0400

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/junit/LoggerContextRule.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/80901063/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java b/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
index 25a7a02..9434f25 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java
@@ -248,7 +248,7 @@ public class LoggerContextRule implements TestRule {
      */
     public <T extends Appender> T getRequiredAppender(final String name, final Class<T> cls) {
         final T appender = getAppender(name, cls);
-        assertNotNull("Appender named " + name + " was null.", appender);
+        assertNotNull("Appender named " + name + " was null in logger context " + loggerContext, appender);
         return appender;
     }