]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
another tweak. log_codec is only a logger
authorJosh <jrosenba@cisco.com>
Wed, 3 Sep 2014 16:10:22 +0000 (12:10 -0400)
committerJosh <jrosenba@cisco.com>
Wed, 3 Sep 2014 16:10:22 +0000 (12:10 -0400)
src/loggers/log_codecs.cc

index 6e147dd436c1589df455ea74021c557a133a5698..3ba609c3b7f922950afae492a87c9916e4bb594f 100644 (file)
@@ -112,7 +112,6 @@ public:
 
     void open();
     void close();
-    virtual void alert(Packet*, const char* msg, Event*);
     virtual void log(Packet*, const char*, Event*);
 
 public:
@@ -135,35 +134,6 @@ void CodecLogger::open()
 void CodecLogger::close()
 { TextLog_Term(test_file); }
 
-void CodecLogger::alert(Packet* p, const char* msg, Event* e)
-{
-    log(p, msg, e);
-#if 0
-    std::string s = std::string(msg);
-
-    if (e != NULL)
-    {
-        TextLog_Print(test_file, "%lu\t%lu\t%lu\t",
-                (unsigned long) e->sig_info->generator,
-                (unsigned long) e->sig_info->id,
-                (unsigned long) e->sig_info->rev);
-    }
-
-    if (flags & ALERT_FLAG_MSG)
-    {
-        if (msg != NULL)
-            TextLog_Print(test_file, "%s\t", msg);
-    }
-
-
-    TextLog_NewLine(test_file);
-    TextLog_Print(test_file, " **** DUMPING PACKET ****");
-    TextLog_NewLine(test_file);
-    PacketManager::log_protocols(test_file, p);
-    TextLog_Print(test_file, " **** FINISHED DUMPING ****");
-    TextLog_NewLine(test_file);
-#endif
-}
 
 void CodecLogger::log(Packet* p, const char* msg, Event* e)
 {