Skip to content

Commit b32f8b4

Browse files
committed
Log websocket error code
1 parent a4fe90b commit b32f8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pctest/test_publish_websocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void pythd_websocket::get_product_list_and_subscribe( )
162162
});
163163

164164
req->connect(req.get(), &jcon::JsonRpcRequest::error, [](int code, const QString& message) {
165-
std::cout << "error sending get_product_list " << message.toStdString() << std::endl;
165+
std::cout << "error sending get_product_list (" << code << ") " << message.toStdString() << std::endl;
166166
});
167167
}
168168

@@ -196,7 +196,7 @@ void pythd_websocket::update_price( account_pubkey_t account, int price, uint co
196196
});
197197

198198
req->connect(req.get(), &jcon::JsonRpcRequest::error, [account](int code, const QString& message) {
199-
std::cout << "error sending update_price " << message.toStdString() << std::endl;
199+
std::cout << "error sending update_price (" << code << ") " << message.toStdString() << std::endl;
200200
});
201201
}
202202

0 commit comments

Comments
 (0)