mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
debug: Add processing suspended/continued to debug.log
This commit is contained in:
parent
9e27334596
commit
402b768787
1 changed files with 4 additions and 1 deletions
|
@ -438,14 +438,17 @@ double current_timestamp = 0.0;
|
|||
static int _processing_suspended = 0;
|
||||
|
||||
void suspend_processing() {
|
||||
if ( _processing_suspended == 0 )
|
||||
if ( _processing_suspended == 0 ) {
|
||||
DBG_LOG(DBG_MAINLOOP, "processing suspended");
|
||||
reporter->Info("processing suspended");
|
||||
}
|
||||
|
||||
++_processing_suspended;
|
||||
}
|
||||
|
||||
void continue_processing() {
|
||||
if ( _processing_suspended == 1 ) {
|
||||
DBG_LOG(DBG_MAINLOOP, "processing continued");
|
||||
reporter->Info("processing continued");
|
||||
detail::current_wallclock = util::current_time(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue