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,