瀏覽代碼

fix: add error logging for connection handshake failure (#57)

Add error logging when connection handshake fails in the plugin runtime to improve debugging and error traceability
Yeuoly 4 月之前
父節點
當前提交
25896a2a5c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      internal/core/plugin_manager/debugging_runtime/hooks.go

+ 1 - 0
internal/core/plugin_manager/debugging_runtime/hooks.go

@@ -226,6 +226,7 @@ func (s *DifyServer) onMessage(runtime *RemotePluginRuntime, message []byte) {
 				return
 			} else if err != nil {
 				// close connection if handshake failed
+				log.Error("failed to get connection info: %v", err)
 				closeConn([]byte("internal error\n"))
 				return
 			}