mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add warning message for unknown Broker statuses
There's now a couple placeholder/unimplemented status values in Broker related to upcoming routing features that we don't want to handle explicitly for compatibility reasons, but also don't want the compiler warning about unhandled values in the switch.
This commit is contained in:
parent
fddb06c3cd
commit
a08b1ff56f
4 changed files with 15 additions and 2 deletions
|
@ -1229,6 +1229,10 @@ void Manager::ProcessStatus(broker::status stat)
|
|||
--peer_count;
|
||||
event = Broker::peer_lost;
|
||||
break;
|
||||
|
||||
default:
|
||||
reporter->Warning("Unhandled Broker status: %s", to_string(stat).data());
|
||||
break;
|
||||
}
|
||||
|
||||
if ( ! event )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue