diff --git a/src/shared/prompt-logging/backends/sheets.ts b/src/shared/prompt-logging/backends/sheets.ts index 6b2450f..187bd46 100644 --- a/src/shared/prompt-logging/backends/sheets.ts +++ b/src/shared/prompt-logging/backends/sheets.ts @@ -396,7 +396,7 @@ export const init = async (onStop: () => void) => { await loadIndexSheet(false); await writeIndexSheet(); } catch (e) { - log.warn(e, "Could not load index sheet. Creating a new one."); + log.warn({ error: e.message }, "Could not load index sheet. Creating a new one."); await createIndexSheet(); } }; diff --git a/src/shared/prompt-logging/log-queue.ts b/src/shared/prompt-logging/log-queue.ts index 0e337d0..1b40228 100644 --- a/src/shared/prompt-logging/log-queue.ts +++ b/src/shared/prompt-logging/log-queue.ts @@ -69,7 +69,7 @@ export const start = async () => { log.info("Logging backend initialized."); started = true; } catch (e) { - log.error(e, "Could not initialize logging backend."); + log.error({ error: e.message }, "Could not initialize logging backend."); return; } scheduleFlush();