Skip to content

Commit

Permalink
When interface removed just as we discover it, log with LOG_INFO, not…
Browse files Browse the repository at this point in the history
… LOG_ERR.
  • Loading branch information
sflow committed Apr 26, 2024
1 parent 0224201 commit e4689c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Linux/readInterfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ extern "C" {

// Get the flags for this interface
if(ioctl(fd,SIOCGIFFLAGS, &ifr) < 0) {
myLog(LOG_ERR, "device %s Get SIOCGIFFLAGS failed : %s",
// Can get here if the interface was just removed under our feet.
myLog(LOG_INFO, "device %s Get SIOCGIFFLAGS failed : %s",
devName,
strerror(errno));
continue;
Expand All @@ -788,7 +789,7 @@ extern "C" {
u_char macBytes[6];
int gotMac = NO;
if(ioctl(fd,SIOCGIFHWADDR, &ifr) < 0) {
myLog(LOG_ERR, "device %s Get SIOCGIFHWADDR failed : %s",
myLog(LOG_INFO, "device %s Get SIOCGIFHWADDR failed : %s",
devName,
strerror(errno));
}
Expand Down

0 comments on commit e4689c6

Please sign in to comment.