From 9aac21243d4fd2e38d742cecc9bb1f3870c846ae Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Thu, 18 Jul 2024 11:38:33 -0700 Subject: [PATCH 1/2] Moving noisy log message behind debug flag --- clients/privacy-center/middleware.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clients/privacy-center/middleware.ts b/clients/privacy-center/middleware.ts index fcbbde838d..7d36b37911 100644 --- a/clients/privacy-center/middleware.ts +++ b/clients/privacy-center/middleware.ts @@ -6,6 +6,9 @@ export default function middleware(request: NextRequest) { path: request.nextUrl.pathname, }; - /* eslint-disable no-console */ - console.info(JSON.stringify(logDict)); + const debug = process.env.FIDES_PRIVACY_CENTER__DEBUG === "true"; + if (debug) { + /* eslint-disable no-console */ + console.info(JSON.stringify(logDict)); + } } From 5d30f41e90d412f65450e27524d629e0cbbadd26 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Fri, 19 Jul 2024 11:04:38 -0700 Subject: [PATCH 2/2] Updating change log --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e29138fea5..da860c0a62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,11 @@ The types of changes are: - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [Unreleased](https://github.com/ethyca/fides/compare/2.41.0...main) + +### Changed +- Moving Privacy Center endpoint logging behind debug flag [#5103](https://github.com/ethyca/fides/pull/5103) + ## [2.41.0](https://github.com/ethyca/fides/compare/2.40.0...2.41.0) - Add AWS Tags in the meta field for Fides system when using `fides generate` [#4998](https://github.com/ethyca/fides/pull/4998).