mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38: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
16
src/Debug.cc
16
src/Debug.cc
|
@ -54,7 +54,7 @@ DebuggerState::~DebuggerState()
|
|||
bool StmtLocMapping::StartsAfter(const StmtLocMapping* m2)
|
||||
{
|
||||
if ( ! m2 )
|
||||
bro_logger->InternalError("Assertion failed: %s", "m2 != 0");
|
||||
reporter->InternalError("Assertion failed: %s", "m2 != 0");
|
||||
|
||||
return loc.first_line > m2->loc.first_line ||
|
||||
(loc.first_line == m2->loc.first_line &&
|
||||
|
@ -362,7 +362,7 @@ vector<ParseLocationRec> parse_location_string(const string& s)
|
|||
{
|
||||
Filemap* map = g_dbgfilemaps.Lookup(loc_filename);
|
||||
if ( ! map )
|
||||
bro_logger->InternalError("Policy file %s should have been loaded\n",
|
||||
reporter->InternalError("Policy file %s should have been loaded\n",
|
||||
loc_filename);
|
||||
|
||||
if ( plr.line > how_many_lines_in(loc_filename) )
|
||||
|
@ -603,7 +603,7 @@ int dbg_execute_command(const char* cmd)
|
|||
#endif
|
||||
|
||||
if ( int(cmd_code) >= num_debug_cmds() )
|
||||
bro_logger->InternalError("Assertion failed: %s", "int(cmd_code) < num_debug_cmds()");
|
||||
reporter->InternalError("Assertion failed: %s", "int(cmd_code) < num_debug_cmds()");
|
||||
|
||||
// Dispatch to the op-specific handler (with args).
|
||||
int retcode = dbg_dispatch_cmd(cmd_code, arguments);
|
||||
|
@ -612,7 +612,7 @@ int dbg_execute_command(const char* cmd)
|
|||
|
||||
const DebugCmdInfo* info = get_debug_cmd_info(cmd_code);
|
||||
if ( ! info )
|
||||
bro_logger->InternalError("Assertion failed: %s", "info");
|
||||
reporter->InternalError("Assertion failed: %s", "info");
|
||||
|
||||
if ( ! info )
|
||||
return -2; // ### yuck, why -2?
|
||||
|
@ -766,7 +766,7 @@ int dbg_handle_debug_input()
|
|||
|
||||
const Stmt* stmt = curr_frame->GetNextStmt();
|
||||
if ( ! stmt )
|
||||
bro_logger->InternalError("Assertion failed: %s", "stmt != 0");
|
||||
reporter->InternalError("Assertion failed: %s", "stmt != 0");
|
||||
|
||||
const Location loc = *stmt->GetLocationInfo();
|
||||
|
||||
|
@ -872,7 +872,7 @@ bool pre_execute_stmt(Stmt* stmt, Frame* f)
|
|||
p = g_debugger_state.breakpoint_map.equal_range(stmt);
|
||||
|
||||
if ( p.first == p.second )
|
||||
bro_logger->InternalError("Breakpoint count nonzero, but no matching breakpoints");
|
||||
reporter->InternalError("Breakpoint count nonzero, but no matching breakpoints");
|
||||
|
||||
for ( BPMapType::iterator i = p.first; i != p.second; ++i )
|
||||
{
|
||||
|
@ -943,11 +943,11 @@ Val* dbg_eval_expr(const char* expr)
|
|||
(g_frame_stack.size() - 1) - g_debugger_state.curr_frame_idx;
|
||||
|
||||
if ( ! (frame_idx >= 0 && (unsigned) frame_idx < g_frame_stack.size()) )
|
||||
bro_logger->InternalError("Assertion failed: %s", "frame_idx >= 0 && (unsigned) frame_idx < g_frame_stack.size()");
|
||||
reporter->InternalError("Assertion failed: %s", "frame_idx >= 0 && (unsigned) frame_idx < g_frame_stack.size()");
|
||||
|
||||
Frame* frame = g_frame_stack[frame_idx];
|
||||
if ( ! (frame) )
|
||||
bro_logger->InternalError("Assertion failed: %s", "frame");
|
||||
reporter->InternalError("Assertion failed: %s", "frame");
|
||||
|
||||
const BroFunc* func = frame->GetFunction();
|
||||
if ( func )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue