mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +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
|
@ -175,6 +175,11 @@ file_analysis::Analyzer* AnalyzerSet::InstantiateAnalyzer(const Tag& tag,
|
|||
|
||||
if ( ! a )
|
||||
{
|
||||
auto c = file_mgr->Lookup(tag);
|
||||
|
||||
if ( c && ! c->Enabled() )
|
||||
return nullptr;
|
||||
|
||||
reporter->Error("[%s] Failed file analyzer %s instantiation",
|
||||
file->GetID().c_str(),
|
||||
file_mgr->GetComponentName(tag).c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue