diff --git a/src/node.ts b/src/node.ts index e01a1f6..e0839b5 100644 --- a/src/node.ts +++ b/src/node.ts @@ -1043,7 +1043,9 @@ async function main(): Promise { const extraTag = extra.length > 0 ? ` (${extra.join(' ')})` : ''; const tag = e.info?.compressed ? `compressed ${e.info.origChars}ch → ${e.info.imageCount}img/${e.info.imageBytes}B${extraTag}` - : (e.info?.reason ?? ''); + : e.info?.reason + ? `savings:skip(${e.info.reason})` + : ''; const cacheRead = e.usage?.cache_read_input_tokens ?? 0; const inputTokens = e.usage?.input_tokens ?? 0; const usageTag = diff --git a/src/worker.ts b/src/worker.ts index dade6ec..b9d8058 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -148,7 +148,9 @@ export default { // shows up in `wrangler tail`). const tag = e.info?.compressed ? `compressed ${e.info.origChars}ch → ${e.info.imageCount}img/${e.info.imageBytes}B` - : (e.info?.reason ?? ''); + : e.info?.reason + ? `savings:skip(${e.info.reason})` + : ''; const cacheRead = e.usage?.cache_read_input_tokens ?? 0; console.log(`${e.method} ${e.path} → ${e.status} (${e.durationMs}ms) ${tag} cache_read=${cacheRead}`);