mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48: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
10
src/Var.cc
10
src/Var.cc
|
@ -404,7 +404,7 @@ Val* internal_val(const char* name)
|
|||
{
|
||||
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
|
||||
if ( ! id )
|
||||
bro_logger->InternalError("internal variable %s missing", name);
|
||||
reporter->InternalError("internal variable %s missing", name);
|
||||
|
||||
return id->ID_Val();
|
||||
}
|
||||
|
@ -413,10 +413,10 @@ Val* internal_const_val(const char* name)
|
|||
{
|
||||
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
|
||||
if ( ! id )
|
||||
bro_logger->InternalError("internal variable %s missing", name);
|
||||
reporter->InternalError("internal variable %s missing", name);
|
||||
|
||||
if ( ! id->IsConst() )
|
||||
bro_logger->InternalError("internal variable %s is not constant", name);
|
||||
reporter->InternalError("internal variable %s is not constant", name);
|
||||
|
||||
return id->ID_Val();
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ ListVal* internal_list_val(const char* name)
|
|||
}
|
||||
|
||||
else
|
||||
bro_logger->InternalError("internal variable %s is not a list", name);
|
||||
reporter->InternalError("internal variable %s is not a list", name);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -487,7 +487,7 @@ BroType* internal_type(const char* name)
|
|||
{
|
||||
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
|
||||
if ( ! id )
|
||||
bro_logger->InternalError("internal type %s missing", name);
|
||||
reporter->InternalError("internal type %s missing", name);
|
||||
|
||||
return id->Type();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue