Formatting log messages
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Fri, 22 Jul 2011 03:49:19 +0000 (00:49 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Fri, 22 Jul 2011 03:49:19 +0000 (00:49 -0300)
src/icmp/icmppinger.cpp

index a670428..337ba54 100644 (file)
@@ -239,7 +239,7 @@ void IcmpPinger::handle_receive_icmp_packet( const size_t &bytes_transferred )
         istream is( &ReplyBuffer );
         if ( !is )
         {
-            GlobalLogger.error() << "can't handle ReplyBuffer" << endl;
+            GlobalLogger.error() << "Error: can't handle ReplyBuffer" << endl;
             return;
         }
 
@@ -286,7 +286,8 @@ void IcmpPinger::handle_receive_icmp_packet( const size_t &bytes_transferred )
     }
     catch ( ... )
     {
-        GlobalLogger.notice() << "exception during ICMP parse. Starting another recieve till timeout." << endl;
+        GlobalLogger.notice() << "exception during ICMP parse. Starting "
+            << "another recieve till timeout." << endl;
         start_receive();
     }
 }