Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving noisy log message behind debug flag #5103

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
}
}
Loading