diff --git a/.changeset/brown-geese-pretend.md b/.changeset/brown-geese-pretend.md new file mode 100644 index 0000000..9291025 --- /dev/null +++ b/.changeset/brown-geese-pretend.md @@ -0,0 +1,5 @@ +--- +"@farcaster/auth-relay": patch +--- + +fix: Allow log level to be configured via environment variable diff --git a/apps/relay/src/logger.ts b/apps/relay/src/logger.ts index 8d1a9e7..ddc4b99 100644 --- a/apps/relay/src/logger.ts +++ b/apps/relay/src/logger.ts @@ -1,5 +1,7 @@ +import { LOG_LEVEL } from "./env"; + export const logger = { - level: "info", + level: LOG_LEVEL, redact: [ "req.headers.authorization", 'req.headers["x-farcaster-auth-relay-key"]',