浏览代码

优化日志打印

johnclot69 6 天之前
父节点
当前提交
7ad3214a8d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/common/LoggingHandler.h

+ 2 - 2
src/common/LoggingHandler.h

@@ -5,11 +5,11 @@
 class LoggingHandler : public ChannelHandler {
 public:
     void handle(const std::shared_ptr<WebsocketSession>& session, const Message& msg) override {
-        spdlog::info("[LoggingHandler] Received message: cmd={}, code={}, message={}",
+        spdlog::info("LoggingHandler Received message: cmd={}, code={}, message={}",
             msg.cmd, msg.code, msg.message);
     }
 
     void channelInactive(const std::shared_ptr<WebsocketSession>& session) override {
-        spdlog::info("[LoggingHandler] Connection closed.");
+        spdlog::info("LoggingHandler Connection closed.");
     }
 };