downgraded icmp parsing error log messages and notice when not saving packets
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 19 Jun 2015 15:16:41 +0000 (17:16 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 19 Jun 2015 15:16:41 +0000 (17:16 +0200)
src/icmp/icmppacketfactory.cpp

index 330fdf9..5d6784a 100644 (file)
@@ -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;
     }