Skip to content

Commit

Permalink
Moving noisy log message behind debug flag (#5103)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana authored Jul 19, 2024
1 parent 166718f commit 5ff9973
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ The types of changes are:
### Added
- Add AWS Tags in the meta field for Fides system when using `fides generate` [#4998](https://github.com/ethyca/fides/pull/4998)

### Changed
- Moving Privacy Center endpoint logging behind debug flag [#5103](https://github.com/ethyca/fides/pull/5103)

### Developer Experience
- Add `.syncignore` to reduce file sync size with new volumes [#5104](https://github.com/ethyca/fides/pull/5104)


## [2.41.0](https://github.com/ethyca/fides/compare/2.40.0...2.41.0)

### Added
Expand Down
7 changes: 5 additions & 2 deletions clients/privacy-center/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit 5ff9973

Please sign in to comment.