From d37cdbae7783fdd6592f8f46a0f84dd09d32ad21 Mon Sep 17 00:00:00 2001 From: kptdobe Date: Tue, 9 Jun 2026 14:15:03 +0200 Subject: [PATCH] log(audit): add repo + fileId to writeAuditEntry failure log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Today's `console.error('writeAuditEntry failed', e)` only carries the SDK error — there's no way to pivot Coralogix by file to tell whether failures are concentrated on specific files or spread uniformly. Adding repo and fileId lets us correlate failed writes with the concurrent-writer data we need to diagnose COR-61. No functional change: log-shape only. Co-Authored-By: Claude Sonnet 4.6 --- src/storage/version/audit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/version/audit.js b/src/storage/version/audit.js index c8964249..3d663b13 100644 --- a/src/storage/version/audit.js +++ b/src/storage/version/audit.js @@ -287,7 +287,7 @@ export async function writeAuditEntry(env, ctx, repo, fileId, entry, attempt = 0 } } catch (e) { // eslint-disable-next-line no-console - console.error('writeAuditEntry failed', e); + console.error('writeAuditEntry failed', { repo, fileId }, e); return { status: 500, error: e.message }; } }