소스 검색

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
 			}