client: log invalid monitor queueSize
This commit is contained in:
+10
-3
@@ -757,10 +757,17 @@ std::shared_ptr<Subscription> MonitorBuilder::exec()
|
||||
|
||||
auto options = op->pvRequest["record._options"];
|
||||
|
||||
options["queueSize"].as<uint32_t>([&op](uint32_t Q) {
|
||||
if(Q>1)
|
||||
if(auto queueSize = options["queueSize"]) {
|
||||
uint32_t Q = 0;
|
||||
if(queueSize.as(Q) && Q>1) {
|
||||
op->queueSize = Q;
|
||||
});
|
||||
} else {
|
||||
log_warn_printf(monevt, "%s requested invalid %s : %s\n",
|
||||
op->channelName.c_str(),
|
||||
op->pvRequest.nameOf(queueSize).c_str(),
|
||||
std::string(SB()<<queueSize).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
(void)options["pipeline"].as(op->pipeline);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user