Skip to content

Commit

Permalink
removed named scope from websocket session
Browse files Browse the repository at this point in the history
  • Loading branch information
wsobel committed May 3, 2024
1 parent e80975b commit eb350cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/mtconnect/sink/rest_sink/websocket_session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace mtconnect::sink::rest_sink {

void close() override
{
NAMED_SCOPE("PlainWebsocketSession::close");
//NAMED_SCOPE("PlainWebsocketSession::close");
if (!m_isOpen)
return;

Expand Down Expand Up @@ -128,7 +128,7 @@ namespace mtconnect::sink::rest_sink {

void writeResponse(ResponsePtr &&response, Complete complete = nullptr) override
{
NAMED_SCOPE("WebsocketSession::writeResponse");
//NAMED_SCOPE("WebsocketSession::writeResponse");
if (!response->m_requestId)
{
boost::system::error_code ec;
Expand All @@ -140,7 +140,7 @@ namespace mtconnect::sink::rest_sink {

void writeFailureResponse(ResponsePtr &&response, Complete complete = nullptr) override
{
NAMED_SCOPE("WebsocketSession::writeFailureResponse");
//NAMED_SCOPE("WebsocketSession::writeFailureResponse");
writeChunk(response->m_body, complete, response->m_requestId);
}

Expand Down Expand Up @@ -175,7 +175,7 @@ namespace mtconnect::sink::rest_sink {
void writeChunk(const std::string &chunk, Complete complete,
std::optional<std::string> requestId = std::nullopt) override
{
NAMED_SCOPE("WebsocketSession::writeChunk");
//NAMED_SCOPE("WebsocketSession::writeChunk");

if (!derived().stream().is_open())
{
Expand Down Expand Up @@ -219,7 +219,7 @@ namespace mtconnect::sink::rest_sink {

void send(const std::string body, Complete complete, const std::string &requestId)
{
NAMED_SCOPE("WebsocketSession::send");
//NAMED_SCOPE("WebsocketSession::send");

using namespace std::placeholders;

Expand Down Expand Up @@ -255,7 +255,7 @@ namespace mtconnect::sink::rest_sink {

void sent(beast::error_code ec, std::size_t len, const std::string &id)
{
NAMED_SCOPE("WebsocketSession::sent");
//NAMED_SCOPE("WebsocketSession::sent");

if (ec)
{
Expand Down Expand Up @@ -310,7 +310,7 @@ namespace mtconnect::sink::rest_sink {

void onRead(beast::error_code ec, std::size_t len)
{
NAMED_SCOPE("PlainWebsocketSession::onRead");
//NAMED_SCOPE("PlainWebsocketSession::onRead");

if (ec)
return fail(boost::beast::http::status::internal_server_error, "shutdown", ec);
Expand Down

0 comments on commit eb350cb

Please sign in to comment.