From b3f01afa6f5cf3facdd5f159484e8ccfb96c36e1 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 23 May 2022 11:37:44 +0100 Subject: [PATCH] fix: typo in Logging constructor I assume this is a typo? --- packages/api/src/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/env.js b/packages/api/src/env.js index 1b329ede78..7f52cd81cd 100644 --- a/packages/api/src/env.js +++ b/packages/api/src/env.js @@ -106,7 +106,7 @@ export function envAll (req, env, ctx) { // Note that we pass `ctx` as the `event` param here, because it's kind of both: // https://developers.cloudflare.com/workers/runtime-apis/fetch-event/#syntax-module-worker env.log = new Logging(req, ctx, { - token: env.log = env.LOGTAIL_TOKEN, + token: env.LOGTAIL_TOKEN, debug: env.DEBUG === 'true', sentry: env.sentry, version: env.VERSION,