mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Move DebugLogger to zeek namespaces
This commit is contained in:
parent
a2a435360a
commit
886fc102b8
40 changed files with 358 additions and 317 deletions
|
@ -79,7 +79,7 @@ TimerMgr::~TimerMgr()
|
|||
|
||||
int TimerMgr::Advance(double arg_t, int max_expire)
|
||||
{
|
||||
DBG_LOG(DBG_TM, "advancing timer mgr to %.6f", arg_t);
|
||||
DBG_LOG(zeek::DBG_TM, "advancing timer mgr to %.6f", arg_t);
|
||||
|
||||
t = arg_t;
|
||||
last_timestamp = 0;
|
||||
|
@ -122,7 +122,7 @@ PQ_TimerMgr::~PQ_TimerMgr()
|
|||
|
||||
void PQ_TimerMgr::Add(Timer* timer)
|
||||
{
|
||||
DBG_LOG(DBG_TM, "Adding timer %s (%p) at %.6f",
|
||||
DBG_LOG(zeek::DBG_TM, "Adding timer %s (%p) at %.6f",
|
||||
timer_type_to_string(timer->Type()), timer, timer->Time());
|
||||
|
||||
// Add the timer even if it's already expired - that way, if
|
||||
|
@ -139,7 +139,7 @@ void PQ_TimerMgr::Expire()
|
|||
Timer* timer;
|
||||
while ( (timer = Remove()) )
|
||||
{
|
||||
DBG_LOG(DBG_TM, "Dispatching timer %s (%p)",
|
||||
DBG_LOG(zeek::DBG_TM, "Dispatching timer %s (%p)",
|
||||
timer_type_to_string(timer->Type()), timer);
|
||||
timer->Dispatch(t, true);
|
||||
--current_timers[timer->Type()];
|
||||
|
@ -161,7 +161,7 @@ int PQ_TimerMgr::DoAdvance(double new_t, int max_expire)
|
|||
// whether we should delete it too.
|
||||
(void) Remove();
|
||||
|
||||
DBG_LOG(DBG_TM, "Dispatching timer %s (%p)",
|
||||
DBG_LOG(zeek::DBG_TM, "Dispatching timer %s (%p)",
|
||||
timer_type_to_string(timer->Type()), timer);
|
||||
timer->Dispatch(new_t, false);
|
||||
delete timer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue