mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +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
|
@ -21,7 +21,7 @@ SerialObj* SerialObj::Instantiate(SerialType type)
|
|||
return o;
|
||||
}
|
||||
|
||||
bro_logger->Error(fmt("Unknown object type 0x%08x", type));
|
||||
reporter->Error(fmt("Unknown object type 0x%08x", type));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ const char* SerialObj::ClassName(SerialType type)
|
|||
if ( f != names->end() )
|
||||
return f->second;
|
||||
|
||||
bro_logger->Error(fmt("Unknown object type 0x%08x", type));
|
||||
reporter->Error(fmt("Unknown object type 0x%08x", type));
|
||||
return "<no-class-name>";
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ void SerialObj::Register(SerialType type, FactoryFunc f, const char* name)
|
|||
|
||||
FactoryMap::iterator i = factories->find(type);
|
||||
if ( i != factories->end() )
|
||||
bro_logger->InternalError("SerialType 0x%08x registered twice", type);
|
||||
reporter->InternalError("SerialType 0x%08x registered twice", type);
|
||||
|
||||
(*factories)[type] = f;
|
||||
(*names)[type] = name;
|
||||
|
@ -77,7 +77,7 @@ bool SerialObj::Serialize(SerialInfo* info) const
|
|||
const TransientID* tid = GetTID();
|
||||
|
||||
if ( ! tid )
|
||||
bro_logger->InternalError("no tid - missing DECLARE_SERIAL?");
|
||||
reporter->InternalError("no tid - missing DECLARE_SERIAL?");
|
||||
|
||||
if ( info->cache )
|
||||
pid = info->s->Cache()->Lookup(*tid);
|
||||
|
@ -211,7 +211,7 @@ SerialObj* SerialObj::Unserialize(UnserialInfo* info, SerialType type)
|
|||
|
||||
const TransientID* tid = obj->GetTID();
|
||||
if ( ! tid )
|
||||
bro_logger->InternalError("no tid - missing DECLARE_SERIAL?");
|
||||
reporter->InternalError("no tid - missing DECLARE_SERIAL?");
|
||||
|
||||
if ( info->cache )
|
||||
info->s->Cache()->Register(obj, pid, info->new_cache_strategy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue