chore: better sync/ingest logging

This commit is contained in:
Adam
2026-05-26 06:35:49 -05:00
parent ca354f8e8a
commit 46140b0cc8
4 changed files with 40 additions and 14 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const SYNC_INTERVAL = "1 hour"
const runtimeLayer = Layer.mergeAll(statsLayer, Athena.layer)
const syncPass = syncStats().pipe(
Effect.catchCause((cause) =>
Effect.logWarning("stats sync failed").pipe(Effect.annotateLogs({ cause: Cause.pretty(cause) })),
Effect.logWarning(`stats sync failed ${JSON.stringify({ cause: Cause.pretty(cause) })}`),
),
)
const daemon = Effect.logInfo("stats sync daemon started").pipe(