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

@ -263,7 +263,7 @@ int RPC_Interpreter::DeliverRPC(const u_char* buf, int n, int rpclen,
}
else if ( n < 0 )
bro_logger->InternalError("RPC underflow");
reporter->InternalError("RPC underflow");
return 1;
}
@ -473,7 +473,7 @@ bool Contents_RPC::CheckResync(int& len, const u_char*& data, bool orig)
if ( resync_toskip != 0 )
// Should never happen.
bro_logger->InternalError("RPC resync: skipping over data failed");
reporter->InternalError("RPC resync: skipping over data failed");
// Now lets see whether data points to the beginning of a RPC
// frame. If the resync processs is successful, we should be
@ -623,7 +623,7 @@ void Contents_RPC::DeliverStream(int len, const u_char* data, bool orig)
marker_buf.Init(4,4);
if ( ! dummy_p )
bro_logger->InternalError("inconsistent RPC record marker extraction");
reporter->InternalError("inconsistent RPC record marker extraction");
last_frag = (marker & 0x80000000) != 0;
marker &= 0x7fffffff;