mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Generate --event-trace output explicitly rather than in EventTraceMgr destructor
This commit is contained in:
parent
6b6c3dbbb7
commit
f5c1a32d8d
3 changed files with 7 additions and 2 deletions
|
@ -958,7 +958,7 @@ EventTraceMgr::EventTraceMgr(const std::string& trace_file) {
|
|||
reporter->FatalError("can't open event trace file %s", trace_file.c_str());
|
||||
}
|
||||
|
||||
EventTraceMgr::~EventTraceMgr() {
|
||||
void EventTraceMgr::Generate() {
|
||||
if ( events.empty() )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue