mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Support explicit disabling of file analyzers
This commit is contained in:
parent
8c4092a0ad
commit
737d2c390b
9 changed files with 145 additions and 6 deletions
|
@ -458,6 +458,13 @@ Analyzer* Manager::InstantiateAnalyzer(const Tag& tag,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if ( ! c->Enabled() )
|
||||
{
|
||||
DBG_LOG(DBG_FILE_ANALYSIS, "[%s] Skip instantiation of disabled analyzer %s",
|
||||
f->id.c_str(), GetComponentName(tag).c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DBG_LOG(DBG_FILE_ANALYSIS, "[%s] Instantiate analyzer %s",
|
||||
f->id.c_str(), GetComponentName(tag).c_str());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue