소스 검색

:loud_sound: Add detailed logging https://github.com/siyuan-note/siyuan/issues/12606

Daniel 10 달 전
부모
커밋
c3ae2a30f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/util/fetch.ts

+ 1 - 1
app/src/util/fetch.ts

@@ -67,7 +67,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
             cb(response);
         }
     }).catch((e) => {
-        console.warn("fetch post error", e);
+        console.warn("fetch post failed [" + e + "], url [" +  url + "]");
         if (url === "/api/transactions" && (e.message === "Failed to fetch" || e.message === "Unexpected end of JSON input")) {
             kernelError();
             return;