mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48: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
|
@ -3,7 +3,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include "FileAnalyzer.h"
|
||||
#include "Logger.h"
|
||||
#include "Reporter.h"
|
||||
|
||||
#ifdef HAVE_LIBMAGIC
|
||||
magic_t File_Analyzer::magic = 0;
|
||||
|
@ -76,11 +76,11 @@ void File_Analyzer::InitMagic(magic_t* magic, int flags)
|
|||
*magic = magic_open(flags);
|
||||
|
||||
if ( ! *magic )
|
||||
bro_logger->Error(fmt("can't init libmagic: %s", magic_error(*magic)));
|
||||
reporter->Error(fmt("can't init libmagic: %s", magic_error(*magic)));
|
||||
|
||||
else if ( magic_load(*magic, 0) < 0 )
|
||||
{
|
||||
bro_logger->Error(fmt("can't load magic file: %s", magic_error(*magic)));
|
||||
reporter->Error(fmt("can't load magic file: %s", magic_error(*magic)));
|
||||
magic_close(*magic);
|
||||
*magic = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue