mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Small, mostly cosmetic updates and fixing a test.
- The test needed to append the second notice the event queue so that the notice would be suppressed correctly. - Setting $suppress_for manually in apply_policy since it doesn't pick up the &default when directly creating the record inside the NOTICE call.
This commit is contained in:
parent
a267c30fcd
commit
e0af4f6e8d
3 changed files with 25 additions and 8 deletions
|
@ -7,8 +7,17 @@ redef enum Notice::Type += {
|
|||
Test_Notice,
|
||||
};
|
||||
|
||||
# The second notice needs to be scheduled due to how the notice framework
|
||||
# uses the event queue.
|
||||
|
||||
event second_notice()
|
||||
{
|
||||
NOTICE([$note=Test_Notice, $msg="another test", $identifier="static"]);
|
||||
}
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
NOTICE([$note=Test_Notice, $msg="test", $identifier="static"]);
|
||||
NOTICE([$note=Test_Notice, $msg="another test", $identifier="static"]);
|
||||
}
|
||||
schedule 1msec { second_notice() };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue