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

@ -663,7 +663,7 @@ const IP_Hdr* ConnCompressor::PendingConnToPacket(const PendingConn* c)
// only an IPv4 address.
#ifdef BROv6
if ( ! is_v4_addr(c->key.ip1) || ! is_v4_addr(c->key.ip2) )
bro_logger->InternalError("IPv6 snuck into connection compressor");
reporter->InternalError("IPv6 snuck into connection compressor");
#endif
*(uint32*) &ip->ip_src =
to_v4_addr(c->ip1_is_src ? c->key.ip1 : c->key.ip2);
@ -933,7 +933,7 @@ void ConnCompressor::Event(const PendingConn* pending, double t,
{
// Special case to go through the logger.
const char* msg = arg->AsString()->CheckString();
bro_logger->Weird(conn_val->Ref(), msg);
reporter->Weird(conn_val->Ref(), msg);
return;
}