Roberto Sánchez
2014-09-18 a4b1e4c32927208e92ca9895fa780e18051d3932
src/main/java/net/curisit/securis/utils/HWInfo.java
....@@ -21,7 +21,7 @@
2121 */
2222 public class HWInfo {
2323
24
- private static final Logger log = LogManager.getLogger(HWInfo.class);
24
+ private static final Logger LOG = LogManager.getLogger(HWInfo.class);
2525
2626 public static String getOsName() {
2727 return System.getProperty("os.name");
....@@ -47,7 +47,7 @@
4747 for (NetworkInterface network : Collections.list(NetworkInterface.getNetworkInterfaces())) {
4848 if (!network.isLoopback() && !network.isVirtual() && !network.isPointToPoint() && network.getHardwareAddress() != null) {
4949 macs.add(network.getHardwareAddress());
50
- log.debug("Interface added {}, MAC: {}", network.getName(), network.getHardwareAddress());
50
+ LOG.debug("Interface added {}, MAC: {}", network.getName(), network.getHardwareAddress());
5151 logInterface(network);
5252 }
5353 }
....@@ -57,7 +57,7 @@
5757 NetworkInterface network = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
5858 if (network.getHardwareAddress() != null)
5959 macs.add(network.getHardwareAddress());
60
- log.debug("Selected interface (Inet Address rule)");
60
+ LOG.debug("Selected interface (Inet Address rule)");
6161 logInterface(network);
6262 }
6363
....@@ -67,7 +67,7 @@
6767 if (!network.isLoopback() && !network.isVirtual() && !network.isPointToPoint() && network.getHardwareAddress() != null) {
6868 if (network.getHardwareAddress() != null)
6969 macs.add(network.getHardwareAddress());
70
- log.debug("Selected interface (Any with MAC rule)");
70
+ LOG.debug("Selected interface (Any with MAC rule)");
7171 logInterface(network);
7272 break;
7373 }
....@@ -81,7 +81,7 @@
8181 for (byte[] mac : macs) {
8282 macAddresses.add(printMacAddress(mac));
8383 }
84
- log.debug("MAC Addresses: {}", macAddresses);
84
+ LOG.debug("MAC Addresses: {}", macAddresses);
8585 return macAddresses;
8686
8787 } catch (UnknownHostException e) {
....@@ -103,10 +103,10 @@
103103 }
104104
105105 private static void logInterface(NetworkInterface network) {
106
- log.debug("Interface name: {}", network.getName());
107
- log.debug("Interface display name: {}", network.getDisplayName());
106
+ LOG.debug("Interface name: {}", network.getName());
107
+ LOG.debug("Interface display name: {}", network.getDisplayName());
108108 try {
109
- log.debug("Interface mac: {}", printMacAddress(network.getHardwareAddress()));
109
+ LOG.debug("Interface mac: {}", printMacAddress(network.getHardwareAddress()));
110110 } catch (SocketException e) {
111111 // Silent
112112 }