This commit is contained in:
SunSung-W541-2025 2026-02-04 21:06:28 +01:00
parent 0bca8c46f6
commit 103153ed86
No known key found for this signature in database
GPG key ID: 9B0583E09C721552
2 changed files with 9 additions and 9 deletions

View file

@ -60,7 +60,7 @@ window.ServerAPI = (function () {
return data;
} catch (e) {
console.error("ServerAPI JSON-parse failed:", e);
console.debug("ServerAPI JSON-parse failed:", e);
ok = false;
return null;
}
@ -80,7 +80,7 @@ window.ServerAPI = (function () {
return { ok: false, info: text };
}
} catch (e) {
console.error("ServerAPI plain-parse failed:", e);
console.debug("ServerAPI plain-parse failed:", e);
ok = false;
return null;
}
@ -97,13 +97,13 @@ window.ServerAPI = (function () {
if (!res.ok) {
const payload = await readJsonSafe(res);
console.error("ServerAPI GET failed:", { url, status: res.status, payload });
console.debug("ServerAPI GET failed:", { url, status: res.status, payload });
return null;
}
return await readJsonSafe(res);
} catch (error) {
console.error("ServerAPI GET error:", { url, error });
console.debug("ServerAPI GET error:", { url, error });
return null;
}
}
@ -123,13 +123,13 @@ window.ServerAPI = (function () {
if (!res.ok) {
const payload = await readJsonSafe(res);
console.error("ServerAPI POST failed:", { url, status: res.status, payload });
console.debug("ServerAPI POST failed:", { url, status: res.status, payload });
return null;
}
return await readJsonSafe(res);
} catch (error) {
console.error("ServerAPI POST error:", { url, error });
console.debug("ServerAPI POST error:", { url, error });
return null;
}
}