Skip to content

Commit 8fa7762

Browse files
authored
Merge pull request #467 from xxxllluuu/master
SystemStarter log print NetCardName
2 parents 241a606 + 14706a7 commit 8fa7762

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

com.creditease.uav.base/src/main/java/com/creditease/agent/SystemStarter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,15 @@ private void checkNetworkReady() {
197197

198198
isReady = true;
199199

200-
StringBuffer ipmsg = new StringBuffer("List NetCardIndex and IP Address:");
200+
StringBuffer ipmsg = new StringBuffer("List NetCardIndex NetCardName and IP Address:");
201201

202202
int index = 0;
203203

204204
for (InetAddress addr : NetworkHelper.getAllIP()) {
205205

206-
ipmsg.append("\n").append(index++).append(" ----- ").append(addr.getHostAddress());
206+
String ip = addr.getHostAddress();
207+
208+
ipmsg.append("\n").append(index++).append(" ----- ").append(NetworkHelper.getNetCardName(ip)).append(" ----- ").append(ip);
207209
}
208210

209211
log.info(this, ipmsg.toString());

0 commit comments

Comments
 (0)