From cf99781c34c0a2194cc77c8da5989002c82b6acf Mon Sep 17 00:00:00 2001 From: Kristo Jorgenson Date: Tue, 14 Jan 2025 12:53:55 +0100 Subject: [PATCH] add filepath setting --- src/Cursor.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Cursor.ts b/src/Cursor.ts index 06d26f2..dbdd7fb 100644 --- a/src/Cursor.ts +++ b/src/Cursor.ts @@ -28,7 +28,11 @@ export class Cursor extends Effect.Service()("Cursor ", { const initialValue = yield* fs.readFileString(labelerCursorFilepath).pipe( Effect.flatMap(decodeCursor), - Effect.tap((cursor) => Effect.log(`Loaded cursor from file: ${cursor}`)), + Effect.tap((cursor) => + Effect.log( + `Loaded cursor from file ${labelerCursorFilepath}: ${cursor}`, + ) + ), Effect.catchTag("SystemError", noFileFallback), )