mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
9
CHANGES
9
CHANGES
|
@ -1,4 +1,13 @@
|
||||||
|
|
||||||
|
3.2.0-dev.445 | 2020-04-29 15:25:03 -0700
|
||||||
|
|
||||||
|
* Add warning message for unknown Broker statuses (Jon Siwek, Corelight)
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
3.2.0-dev.443 | 2020-04-28 17:10:38 -0700
|
3.2.0-dev.443 | 2020-04-28 17:10:38 -0700
|
||||||
|
|
||||||
* GH-941: Fix build when configured to use libmaxminddb (Jon Siwek, Corelight)
|
* GH-941: Fix build when configured to use libmaxminddb (Jon Siwek, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
3.2.0-dev.443
|
3.2.0-dev.445
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3375d5703e0c805455649fff4bf30827f63dbf74
|
Subproject commit 8d84b0268a3dcd2edd2ccccdac16e3279f52b729
|
|
@ -1229,6 +1229,10 @@ void Manager::ProcessStatus(broker::status stat)
|
||||||
--peer_count;
|
--peer_count;
|
||||||
event = Broker::peer_lost;
|
event = Broker::peer_lost;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
reporter->Warning("Unhandled Broker status: %s", to_string(stat).data());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! event )
|
if ( ! event )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue