Renaming the Logger to Reporter.

Also changing output to not include timestamps when we haven't started
processing packets yet.
This commit is contained in:
Robin Sommer 2011-07-01 09:22:33 -07:00
parent 93894eed9b
commit 66e2c3b623
123 changed files with 722 additions and 713 deletions

View file

@ -11,7 +11,7 @@
#include "BroString.h"
#include "Var.h"
#include "Logger.h"
#include "Reporter.h"
#ifdef DEBUG
#define DEBUG_STR(msg) DBG_LOG(DBG_STRING, msg)
@ -176,9 +176,9 @@ const char* BroString::CheckString() const
// Either an embedded NUL, or no final NUL.
char* exp_s = Render();
if ( b[n-1] != '\0' )
bro_logger->Error("string without NUL terminator: \"%s\"", exp_s);
reporter->Error("string without NUL terminator: \"%s\"", exp_s);
else
bro_logger->Error("string with embedded NUL: \"%s\"", exp_s);
reporter->Error("string with embedded NUL: \"%s\"", exp_s);
delete [] exp_s;
return "<string-with-NUL>";