mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
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:
parent
93894eed9b
commit
66e2c3b623
123 changed files with 722 additions and 713 deletions
|
@ -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>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue