mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28: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
|
@ -195,7 +195,7 @@ bool ChunkedIOFd::WriteChunk(Chunk* chunk, bool partial)
|
|||
assert(chunk->len <= BUFFER_SIZE - sizeof(uint32) );
|
||||
|
||||
if ( chunk->len == 0 )
|
||||
bro_logger->InternalError( "attempt to write 0 bytes chunk");
|
||||
reporter->InternalError( "attempt to write 0 bytes chunk");
|
||||
|
||||
if ( partial )
|
||||
chunk->len |= FLAG_PARTIAL;
|
||||
|
@ -285,7 +285,7 @@ bool ChunkedIOFd::FlushWriteBuffer()
|
|||
}
|
||||
|
||||
if ( written == 0 )
|
||||
bro_logger->InternalError("written==0");
|
||||
reporter->InternalError("written==0");
|
||||
|
||||
// Short write.
|
||||
write_pos += written;
|
||||
|
@ -906,7 +906,7 @@ bool ChunkedIOSSL::WriteData(char* p, uint32 len, bool* error)
|
|||
return false;
|
||||
}
|
||||
|
||||
bro_logger->InternalError("can't be reached");
|
||||
reporter->InternalError("can't be reached");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1026,7 +1026,7 @@ bool ChunkedIOSSL::ReadData(char* p, uint32 len, bool* error)
|
|||
}
|
||||
|
||||
// Can't be reached.
|
||||
bro_logger->InternalError("can't be reached");
|
||||
reporter->InternalError("can't be reached");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue