From d76b4ce733861e8a680a4bb045d11179f6f8a2ab Mon Sep 17 00:00:00 2001 From: Neville Samuell Date: Wed, 21 Jun 2023 10:24:36 -0400 Subject: [PATCH 1/2] Restrict Privacy Center debug logging to development-only --- clients/privacy-center/app/server-environment.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/privacy-center/app/server-environment.ts b/clients/privacy-center/app/server-environment.ts index 1cf1f3b9dc..149425db65 100644 --- a/clients/privacy-center/app/server-environment.ts +++ b/clients/privacy-center/app/server-environment.ts @@ -112,7 +112,9 @@ const loadConfigFile = async ( path = urlString.replace("file:", ""); } const file = await fsPromises.readFile(path || url, "utf-8"); - console.log(`Loaded configuration file: ${urlString}`); + if (process.env.NODE_ENV === "development") { + console.log(`Loaded configuration file: ${urlString}`); + } return file; } catch (err: any) { // Catch "file not found" errors (ENOENT) @@ -237,7 +239,9 @@ export const loadPrivacyCenterEnvironment = ); } // DEFER: Log a version number here (see https://github.com/ethyca/fides/issues/3171) - console.log("Load Privacy Center environment for session..."); + if (process.env.NODE_ENV === "development") { + console.log("Load Privacy Center environment for session..."); + } // Load environment variables const settings: PrivacyCenterSettings = { From f3eb29355e7d023cc56100736029fd4bd5c44215 Mon Sep 17 00:00:00 2001 From: Neville Samuell Date: Wed, 21 Jun 2023 10:45:58 -0400 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df6d0ade2f..47b62a8df5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The types of changes are: - Removed `pyodbc` in favor of `pymssql` for handling SQL Server connections [#3435](https://github.com/ethyca/fides/pull/3435) - Only create a PrivacyRequest when saving consent if at least one notice has system-wide enforcement [#3626](https://github.com/ethyca/fides/pull/3626) + ### Fixed - Fix race condition with consent modal link rendering [#3521](https://github.com/ethyca/fides/pull/3521) @@ -39,6 +40,7 @@ The types of changes are: - Only create default experience configs on startup, not update [#3605](https://github.com/ethyca/fides/pull/3605) - Update to latest asyncpg dependency to avoid build error [#3614](https://github.com/ethyca/fides/pull/3614) - Fix bug where editing a data use on a system could delete existing data uses [#3627](https://github.com/ethyca/fides/pull/3627) +- Restrict Privacy Center debug logging to development-only [#3638](https://github.com/ethyca/fides/pull/3638) ### Developer Experience