mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
10
src/Desc.cc
10
src/Desc.cc
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "Desc.h"
|
||||
#include "File.h"
|
||||
#include "Logger.h"
|
||||
#include "Reporter.h"
|
||||
|
||||
#define DEFAULT_SIZE 128
|
||||
#define SLOP 10
|
||||
|
@ -73,14 +73,14 @@ void ODesc::PushIndent()
|
|||
void ODesc::PopIndent()
|
||||
{
|
||||
if ( --indent_level < 0 )
|
||||
bro_logger->InternalError("ODesc::PopIndent underflow");
|
||||
reporter->InternalError("ODesc::PopIndent underflow");
|
||||
NL();
|
||||
}
|
||||
|
||||
void ODesc::PopIndentNoNL()
|
||||
{
|
||||
if ( --indent_level < 0 )
|
||||
bro_logger->InternalError("ODesc::PopIndent underflow");
|
||||
reporter->InternalError("ODesc::PopIndent underflow");
|
||||
}
|
||||
|
||||
void ODesc::Add(const char* s, int do_indent)
|
||||
|
@ -289,7 +289,7 @@ void ODesc::AddBytesRaw(const void* bytes, unsigned int n)
|
|||
if ( ! write_failed )
|
||||
// Most likely it's a "disk full" so report
|
||||
// subsequent failures only once.
|
||||
bro_logger->Error(fmt("error writing to %s: %s", f->Name(), strerror(errno)));
|
||||
reporter->Error(fmt("error writing to %s: %s", f->Name(), strerror(errno)));
|
||||
|
||||
write_failed = true;
|
||||
return;
|
||||
|
@ -325,5 +325,5 @@ void ODesc::Grow(unsigned int n)
|
|||
|
||||
void ODesc::OutOfMemory()
|
||||
{
|
||||
bro_logger->InternalError("out of memory");
|
||||
reporter->InternalError("out of memory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue