mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Management framework: log node set in dispatch requests cleanly
Converting to a (sorted) vector both renders the empty set cleanly (without whitespace) and ensures consistent ordering.
This commit is contained in:
parent
7d4dd22aba
commit
fb733eb664
2 changed files with 4 additions and 2 deletions
|
@ -755,7 +755,8 @@ event Management::Node::API::node_dispatch_response(reqid: string, result: Manag
|
|||
|
||||
event Management::Agent::API::node_dispatch_request(reqid: string, action: vector of string, nodes: set[string])
|
||||
{
|
||||
Management::Log::info(fmt("rx Management::Agent::API::node_dispatch_request %s %s %s", reqid, action, nodes));
|
||||
Management::Log::info(fmt("rx Management::Agent::API::node_dispatch_request %s %s %s",
|
||||
reqid, action, Management::Util::set_to_vector(nodes)));
|
||||
|
||||
local node: string;
|
||||
local cluster_nodes: set[string];
|
||||
|
|
|
@ -57,7 +57,8 @@ global g_dispatch_table: table[string] of DispatchCallback = {
|
|||
|
||||
event Management::Node::API::node_dispatch_request(reqid: string, action: vector of string, nodes: set[string])
|
||||
{
|
||||
Management::Log::info(fmt("rx Management::Node::API::node_dispatch_request %s %s %s", reqid, action, nodes));
|
||||
Management::Log::info(fmt("rx Management::Node::API::node_dispatch_request %s %s %s",
|
||||
reqid, action, Management::Util::set_to_vector(nodes)));
|
||||
|
||||
if ( |nodes| > 0 && Cluster::node !in nodes )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue