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:
Jon Siwek 2020-04-29 15:25:03 -07:00
parent fddb06c3cd
commit a08b1ff56f
4 changed files with 15 additions and 2 deletions

View file

@ -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
* GH-941: Fix build when configured to use libmaxminddb (Jon Siwek, Corelight)

View file

@ -1 +1 @@
3.2.0-dev.443
3.2.0-dev.445

@ -1 +1 @@
Subproject commit 3375d5703e0c805455649fff4bf30827f63dbf74
Subproject commit 8d84b0268a3dcd2edd2ccccdac16e3279f52b729

View file

@ -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 )