Skip to content

Commit

Permalink
Supress log errors in Arping example (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
seladb authored Nov 5, 2021
1 parent f92b3b8 commit 7ec00c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Examples/Arping/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ int main(int argc, char* argv[])
double arpResponseTimeMS = 0;
int i = 1;

// suppressing errors to avoid cluttering stdout
pcpp::Logger::getInstance().suppressLogs();

while (i <= maxTries)
{
// use the getMacAddress utility to send an ARP request and resolve the MAC address
Expand Down

0 comments on commit 7ec00c4

Please sign in to comment.