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 2022/01/12 14:03:36 UTC

[logging-log4j2] branch release-2.x updated: [LOG4J2-3330] Configurator.setLevel not fetching the correct LoggerContext.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 0fc41eb  [LOG4J2-3330] Configurator.setLevel not fetching the correct LoggerContext.
0fc41eb is described below

commit 0fc41eb518d1e826ebc90ee7c9d1bacb3d1a3553
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jan 12 09:03:34 2022 -0500

    [LOG4J2-3330] Configurator.setLevel not fetching the correct
    LoggerContext.
    
    Don't use deprecated API that does not use its second argument anyway.
---
 .../test/java/org/apache/logging/log4j/core/util/WatchHttpTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchHttpTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchHttpTest.java
index 01b837c..6d06eed 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchHttpTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/WatchHttpTest.java
@@ -106,7 +106,7 @@ public class WatchHttpTest {
         scheduler.start();
         watchManager.start();
         try {
-            watchManager.watch(new Source(url.toURI(), previous.getTimeInMillis()), new HttpWatcher(configuration, null,
+            watchManager.watch(new Source(url), new HttpWatcher(configuration, null,
                 listeners, previous.getTimeInMillis()));
             final String str = queue.poll(2, TimeUnit.SECONDS);
             assertNotNull("File change not detected", str);
@@ -142,7 +142,7 @@ public class WatchHttpTest {
         scheduler.start();
         watchManager.start();
         try {
-            watchManager.watch(new Source(url.toURI(), previous.getTimeInMillis()), new HttpWatcher(configuration, null,
+            watchManager.watch(new Source(url), new HttpWatcher(configuration, null,
                 listeners, previous.getTimeInMillis()));
             final String str = queue.poll(2, TimeUnit.SECONDS);
             assertNull("File changed.", str);