mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
zeekygen: Disable zeek_init() handlers causing error output
These modules have zeek_init() handlers with actual logic that has side-effects and error outputs. Just disable them during zeekygen runs.
This commit is contained in:
parent
6fd68bc607
commit
6f3e3a10e6
1 changed files with 8 additions and 1 deletions
|
@ -21,7 +21,14 @@
|
|||
|
||||
@load ./example.zeek
|
||||
|
||||
event zeek_init()
|
||||
event zeek_init() &priority=1000
|
||||
{
|
||||
# Disable events in modules that use zeek_init() to do stuff and may
|
||||
# fail when run under zeekygen. For the purpose of zeekygen, we could
|
||||
# probably disable all modules, too.
|
||||
disable_module_events("Control");
|
||||
disable_module_events("Management::Agent::Runtime");
|
||||
disable_module_events("Management::Controller::Runtime");
|
||||
disable_module_events("Management::Node");
|
||||
terminate();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue