chore: better sync/ingest logging

This commit is contained in:
Adam 2026-05-26 06:35:49 -05:00
commit 46140b0cc8
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
4 changed files with 40 additions and 14 deletions

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(