fix: 优化日志

This commit is contained in:
2026-01-08 21:39:52 +08:00
parent db2b2af0d3
commit 82da2a1a04
7 changed files with 49 additions and 89 deletions

View File

@@ -60,9 +60,7 @@ class Gitea {
}),
});
if (!response.ok) {
const payload = await response
.json()
.catch(() => null as unknown);
const payload = await response.json().catch(() => null as unknown);
log.error(
TAG,
'Gitea token request failed: status=%d payload=%o',