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/20 19:32:27 UTC
logging-log4j2 git commit: In-line one-off lvar.
Repository: logging-log4j2
Updated Branches:
refs/heads/master c27136aad -> ff4afc6ba
In-line one-off lvar.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ff4afc6b
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ff4afc6b
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ff4afc6b
Branch: refs/heads/master
Commit: ff4afc6bab31e262566c3848c21ab397dc18154a
Parents: c27136a
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Sep 20 12:32:24 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Sep 20 12:32:24 2016 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/logging/log4j/core/jmx/Server.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ff4afc6b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
index 0476a90..0e7d37b 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/Server.java
@@ -255,8 +255,7 @@ public final class Server {
* @param mbs the MBean Server to unregister the instrumented objects from
*/
public static void unregisterLoggerContext(final String contextName, final MBeanServer mbs) {
- final String pattern = LoggerContextAdminMBean.PATTERN;
- final String search = String.format(pattern, escape(contextName), "*");
+ final String search = String.format(LoggerContextAdminMBean.PATTERN, escape(contextName), "*");
unregisterAllMatching(search, mbs); // unregister context mbean
// now unregister all MBeans associated with this logger context