diff --git a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java index ffbca1a6..b0550515 100644 --- a/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java +++ b/src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java @@ -95,7 +95,7 @@ public class LogUI extends JFrame { private SettingsManager settingsManager; private final List receivers = new ArrayList<>(); private final List receiverListeners = new ArrayList<>(); - private final ZeroConfPlugin zeroConf = new ZeroConfPlugin(settingsManager); + private final ZeroConfPlugin zeroConf = new ZeroConfPlugin(); /** * Clients can register a ShutdownListener to be notified when the user has diff --git a/src/main/java/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java b/src/main/java/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java index 4b2701fd..34a2ae2d 100644 --- a/src/main/java/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java +++ b/src/main/java/org/apache/log4j/chainsaw/zeroconf/ZeroConfPlugin.java @@ -57,7 +57,7 @@ */ public class ZeroConfPlugin extends DockablePanel { - private static final Logger LOG = LogManager.getLogger(); + private static final Logger LOG = LogManager.getLogger(ZeroConfPlugin.class); private final ZeroConfDeviceModel discoveredDevices = new ZeroConfDeviceModel(); @@ -85,11 +85,9 @@ public void actionPerformed(ActionEvent e) { private static final String NEW_UDP_APPENDER_SERVICE_NAME = "_log4j._udp.local."; private JmDNS jmDNS; - private SettingsManager settingsManager; - - public ZeroConfPlugin(SettingsManager settingsManager) { + + public ZeroConfPlugin() { setName("Zeroconf"); - this.settingsManager = settingsManager; deviceTable.setRowHeight(ChainsawConstants.DEFAULT_ROW_HEIGHT); try{ activateOptions();