Skip to content

Commit

Permalink
removed settingsManager from deps of ZeroConf, corrected Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
grobmeier committed Dec 17, 2023
1 parent bfab61a commit d675dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/log4j/chainsaw/logui/LogUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class LogUI extends JFrame {
private SettingsManager settingsManager;
private final List<ChainsawReceiver> receivers = new ArrayList<>();
private final List<ReceiverEventListener> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d675dd6

Please sign in to comment.