mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Improve control framework id-update/test output
This commit is contained in:
parent
d245513e0a
commit
6215d45f10
2 changed files with 19 additions and 4 deletions
|
@ -126,14 +126,17 @@ event Broker::peer_added(endpoint: Broker::EndpointInfo, msg: string) &priority=
|
|||
{
|
||||
# Send all &redef'able consts to the peer.
|
||||
local ids = configurable_ids();
|
||||
local publish_count = 0;
|
||||
|
||||
for ( id in ids )
|
||||
{
|
||||
local topic = fmt("%s/id/%s", Control::topic_prefix, id);
|
||||
Broker::publish_id(topic, id);
|
||||
|
||||
if ( Broker::publish_id(topic, id) )
|
||||
++publish_count;
|
||||
}
|
||||
|
||||
Reporter::info(fmt("Control framework sent %d IDs", |ids|));
|
||||
Reporter::info(fmt("Control framework sent %d IDs", publish_count));
|
||||
}
|
||||
|
||||
send_control_request();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue