From: Josh Date: Wed, 3 Sep 2014 16:10:22 +0000 (-0400) Subject: another tweak. log_codec is only a logger X-Git-Tag: 3.0.0-233~1414^2~2^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfa45dad732a18138795db3c53fe1282602f13b5;p=thirdparty%2Fsnort3.git another tweak. log_codec is only a logger --- diff --git a/src/loggers/log_codecs.cc b/src/loggers/log_codecs.cc index 6e147dd43..3ba609c3b 100644 --- a/src/loggers/log_codecs.cc +++ b/src/loggers/log_codecs.cc @@ -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) {