diff --git a/src/internal/monitoring/logflare.ts b/src/internal/monitoring/logflare.ts index fa41914e..4be344d3 100644 --- a/src/internal/monitoring/logflare.ts +++ b/src/internal/monitoring/logflare.ts @@ -22,6 +22,9 @@ export default function () { return createLogFlareWriteStream({ apiKey: logflareApiKey, sourceToken: logflareSourceToken, + onError: (err: Error) => { + console.error(`[Logflare][Error] ${err.message} - ${err.stack}`) + }, onPreparePayload: (payload: any, meta: any) => { const item = defaultPreparePayload(payload, meta) item.project = payload.project