diag: Reduce book log noise in md plugins

They're too noisy for Info level.
This commit is contained in:
John Colvin committed 2025-06-16 15:52:09 +00:00
1 parent e799b6e24b
commit 8770de4a87
2 files changed
+2 -2

No files matched your search

@@ -28,7 +28,7 @@ void MdBridgeImpl::on_securities(
}
void MdBridgeImpl::on_books(const std::vector<std::shared_ptr<PyBook>> &books) {
INFO_TRACE_PARAMS("on_books", json_formatter(books.size()));
DIAG_TRACE_PARAMS("on_books", json_formatter(books.size()));
incoming_books.push_many(books.begin(), books.end());
}
@@ -225,7 +225,7 @@ class BybitMdProvider(MdProvider):
sorted_asks = sorted(raw_asks, key=lambda x: x[0])[:5]
sorted_asks += [(np.float64('nan'), np.float64('nan'))]
logger.info(f"📘 BOOK DATA for {contract}: bids={sorted_bids} asks={sorted_asks}")
logger.debug(f"📘 BOOK DATA for {contract}: bids={sorted_bids} asks={sorted_asks}")
book = PyBook()
book.set_data(