From: Christian Herdtweck Date: Fri, 19 Jun 2015 15:16:41 +0000 (+0200) Subject: downgraded icmp parsing error log messages and notice when not saving packets X-Git-Url: http://developer.intra2net.com/git/?p=pingcheck;a=commitdiff_plain;h=9a90648af34ceeb4d312cc65745ac508d61fc86b downgraded icmp parsing error log messages and notice when not saving packets --- diff --git a/src/icmp/icmppacketfactory.cpp b/src/icmp/icmppacketfactory.cpp index 330fdf9..5d6784a 100644 --- a/src/icmp/icmppacketfactory.cpp +++ b/src/icmp/icmppacketfactory.cpp @@ -131,13 +131,13 @@ IcmpPacketItem IcmpPacketFactory::create_icmp_packet( } catch ( const std::exception &ex ) { - GlobalLogger.notice() << "Exception during ICMP parse: " << ex.what() - << std::endl; + GlobalLogger.info() << "Exception during ICMP parse: " << ex.what() + << std::endl; icmp_packet.reset(); } catch ( ... ) { - GlobalLogger.notice() << "Exception during ICMP parse." << std::endl; + GlobalLogger.info() << "Exception during ICMP parse." << std::endl; icmp_packet.reset(); } @@ -207,7 +207,7 @@ void IcmpPacketFactory::dump_packet(const std::string &data) // check if directory exists if ( !I2n::path_exists( I2n::dirname(temp_name.str()) ) ) { - GlobalLogger.notice() << "Not saving packet data because directory " + GlobalLogger.info() << "Not saving packet data because directory " << I2n::dirname(temp_name.str()) << " does not exist"; return; } @@ -240,7 +240,7 @@ void IcmpPacketFactory::dump_packet(const IcmpPacket &packet) // check if directory exists if ( !I2n::path_exists( I2n::dirname(temp_name.str()) ) ) { - GlobalLogger.notice() << "Not saving packet data because directory " + GlobalLogger.info() << "Not saving packet data because directory " << I2n::dirname(temp_name.str()) << " does not exist"; return; }