chore: redact long texts in web logs

This commit is contained in:
Peter Steinberger
2025-12-05 19:21:23 +00:00
parent 0da3f84a2e
commit 29dfe89137
2 changed files with 16 additions and 4 deletions

View File

@@ -27,7 +27,8 @@ export const DEFAULT_IDLE_MINUTES = 60;
export function resolveStorePath(store?: string) {
if (!store) return SESSION_STORE_DEFAULT;
if (store.startsWith("~")) return path.resolve(store.replace("~", os.homedir()));
if (store.startsWith("~"))
return path.resolve(store.replace("~", os.homedir()));
return path.resolve(store);
}