don't print google api key to container logs on error

This commit is contained in:
nai-degen 2023-12-01 11:23:56 -06:00
parent 9e61d9029f
commit cd1b9d0e0c
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}
};

View File

@ -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();