Toned down logging
This commit is contained in:
1 parent
f68458a0f8
commit
e305ad124e
1 file changed
+5
-5
@@ -227,11 +227,11 @@ FifoSecurityMatcher::FifoSecurityMatcher(
|
||||
[](const auto &o1, const auto &o2) {
|
||||
return o1.priority < o2.priority;
|
||||
});
|
||||
LOG(OrderMan, Info, "FifoSecurityMatcher::cons begin eid:{} n_orders:{}",
|
||||
LOG(OrderMan, Diag, "FifoSecurityMatcher::cons begin eid:{} n_orders:{}",
|
||||
_event_id, orders.size());
|
||||
for (auto const &o : sorted_orders)
|
||||
_on_new_order(o);
|
||||
LOG(OrderMan, Info, "FifoSecurityMatcher::cons end eid:{}", _event_id);
|
||||
LOG(OrderMan, Diag, "FifoSecurityMatcher::cons end eid:{}", _event_id);
|
||||
_log_mbo(10,100);
|
||||
}
|
||||
_running_op_count = 0;
|
||||
@@ -417,7 +417,7 @@ void FifoSecurityMatcher::_log_trace_order_state(const std::string& msg){
|
||||
MDP3OrderKey k = kv.first;
|
||||
auto[pl,o] = _find_order(k);
|
||||
if(pl != nullptr && o != nullptr)
|
||||
LOG(OrderMan, Info,
|
||||
LOG(OrderMan, Diag,
|
||||
"Order state msg:{} eid:{} key:{} qty:{} ib_show_qty:{} ib_total_qty:{} "
|
||||
"price:{}",
|
||||
msg, _event_id, o->key, o->quantity, o->ib.show_qty, o->ib.total_qty,
|
||||
@@ -427,7 +427,7 @@ void FifoSecurityMatcher::_log_trace_order_state(const std::string& msg){
|
||||
void FifoSecurityMatcher::_log_trace_order(const MDP3Order& ord,
|
||||
const std::string& msg){
|
||||
if(_trace.log(ord.key,_event_id)){
|
||||
LOG(OrderMan, Info,
|
||||
LOG(OrderMan, Diag,
|
||||
"{} eid:{} key:{} side:{} qty:{} ib_qty:{} price:{} book:{}",
|
||||
msg, _event_id, ord.key, static_cast<int>(ord.side), ord.quantity,
|
||||
ord.iceberg_quantity.has_value() ? ord.iceberg_quantity.value()
|
||||
@@ -453,7 +453,7 @@ void FifoSecurityMatcher::_log_mbo(size_t n_levels, size_t n_orders){
|
||||
buff << pl.print_mbo(n_orders) << std::endl;
|
||||
}
|
||||
auto msg = buff.str();
|
||||
LOG(OrderMan, Info, "{}", msg);
|
||||
LOG(OrderMan, Diag, "{}", msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user