Skip to content

Commit 641175b

Browse files
p-shah256meta-codesync[bot]
authored andcommitted
stop logging error if file exists
Summary: same as title Reviewed By: lima1756 Differential Revision: D83570224 fbshipit-source-id: ed5dd3e920c114c29866764985bd81b251a66ea1
1 parent d45e98c commit 641175b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

katran/lib/BaseBpfAdapter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ static int NetlinkRoundtrip(const NetlinkMessage& msg) {
188188
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
189189
}
190190
if (ret < 0) {
191-
PLOG(ERROR) << "Error receiving netlink message";
191+
if (errno == EEXIST) {
192+
VLOG(1) << "Netlink operation completed with EEXIST";
193+
} else {
194+
PLOG(ERROR) << "Error receiving netlink message";
195+
}
192196
}
193197
return ret;
194198
}

0 commit comments

Comments
 (0)