From 9a90648af34ceeb4d312cc65745ac508d61fc86b Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 19 Jun 2015 17:16:41 +0200 Subject: [PATCH] downgraded icmp parsing error log messages and notice when not saving packets --- src/icmp/icmppacketfactory.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) 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; } -- 1.7.1