Fix: set log to diag, it logs every book update
This commit is contained in:
1 parent
a5b704eef1
commit
cd3e845dd9
1 file changed
+2
-1
@@ -20,6 +20,7 @@
|
||||
#include "spark/domain/TradeRecord.h"
|
||||
#include "spark/io/JsonDumper.h"
|
||||
#include "spark/io/websocket/websocket_client.h"
|
||||
#include "spark/logging/logging.h"
|
||||
#include "spark/logging/trace_log.h"
|
||||
#include "spark/logging/trace_log_var.h"
|
||||
#include "spark/md/IMarketDataListener.h"
|
||||
@@ -227,7 +228,7 @@ struct __attribute((visibility("hidden"))) StreamBatchData {
|
||||
}
|
||||
|
||||
void on_message(const string &msg_str) {
|
||||
LOG(md, bts::Info, "[binance_ufuts_md_msg.json]{}", msg_str);
|
||||
LOG(md, bts::Diag, "[binance_ufuts_md_msg.json]{}", msg_str);
|
||||
try {
|
||||
auto msg_j = nlohmann::json::parse(msg_str);
|
||||
JsonReader msg_jr{&msg_j};
|
||||
|
||||
Reference in new issue
Block a user