From eb350cb36fff661563839b646b46bc78d5422444 Mon Sep 17 00:00:00 2001 From: Will Sobel Date: Fri, 3 May 2024 04:44:30 -0400 Subject: [PATCH] removed named scope from websocket session --- src/mtconnect/sink/rest_sink/websocket_session.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mtconnect/sink/rest_sink/websocket_session.hpp b/src/mtconnect/sink/rest_sink/websocket_session.hpp index 7a84bfbc..c0bd12a2 100644 --- a/src/mtconnect/sink/rest_sink/websocket_session.hpp +++ b/src/mtconnect/sink/rest_sink/websocket_session.hpp @@ -100,7 +100,7 @@ namespace mtconnect::sink::rest_sink { void close() override { - NAMED_SCOPE("PlainWebsocketSession::close"); + //NAMED_SCOPE("PlainWebsocketSession::close"); if (!m_isOpen) return; @@ -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; @@ -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); } @@ -175,7 +175,7 @@ namespace mtconnect::sink::rest_sink { void writeChunk(const std::string &chunk, Complete complete, std::optional requestId = std::nullopt) override { - NAMED_SCOPE("WebsocketSession::writeChunk"); + //NAMED_SCOPE("WebsocketSession::writeChunk"); if (!derived().stream().is_open()) { @@ -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; @@ -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) { @@ -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);