Removed logging in hot path.
This commit is contained in:
1 parent
a2754bc2f5
commit
062e28bf5d
1 file changed
+2
-6
@@ -82,7 +82,7 @@ class BrokerProxy : public ILocalBroker {
|
||||
|
||||
void do_work(trace::PerfLog& log) {
|
||||
_cycles++;
|
||||
_outgoing.consume_all([this,&log](BrokerMsg *m) {
|
||||
_outgoing.consume_all([this,&](BrokerMsg *m) {
|
||||
switch (m->msg_type) {
|
||||
case BrokerMsgType::ADD_NEIGHBOUR:
|
||||
_real_broker.add_neighbour(*m->neighbour);
|
||||
@@ -102,13 +102,9 @@ class BrokerProxy : public ILocalBroker {
|
||||
case BrokerMsgType::UNSUBSCRIBE:
|
||||
_real_broker.unsubscribe(m->broker_id, m->sub_id, m->stream_id);
|
||||
break;
|
||||
case BrokerMsgType::NOTIFY: {
|
||||
LOG(Latency, Diag, "Notify broker {}. Cycles: {}", _id.value(),
|
||||
_cycles);
|
||||
auto scoped_do_work = trace::log_scope(log, {}, "BrokerProxy::notify");
|
||||
case BrokerMsgType::NOTIFY:
|
||||
_real_broker.notify(m->broker_id, m->stream_id, m->sub_id,
|
||||
m->notification);
|
||||
}
|
||||
break;
|
||||
case BrokerMsgType::LOCAL_SUBSCRIBE:
|
||||
_real_broker.local_subscribe(m->local_sub_id, m->filter,
|
||||
|
||||
Reference in new issue
Block a user