Skip to content

Commit

Permalink
revert accidental logger change
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Sep 18, 2015
1 parent 7e32e47 commit c55e556
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

public class MacAddressProvider {

private static final ESLogger logger = Loggers.getLogger(MacAddressProvider.class);

private static byte[] getMacAddress() throws SocketException {
Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();
if (en != null) {
Expand Down Expand Up @@ -64,15 +66,11 @@ public static byte[] getSecureMungedAddress() {
try {
address = getMacAddress();
} catch( SocketException se ) {
// only grab the logger when necessary, since the logging system may not be setup yet
ESLogger logger = Loggers.getLogger(MacAddressProvider.class);
logger.warn("Unable to get mac address, will use a dummy address", se);
// address will be set below
}

if (!isValidAddress(address)) {
// only grab the logger when necessary, since the logging system may not be setup yet
ESLogger logger = Loggers.getLogger(MacAddressProvider.class);
logger.warn("Unable to get a valid mac address, will use a dummy address");
address = constructDummyMulticastAddress();
}
Expand Down

0 comments on commit c55e556

Please sign in to comment.