Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/new-moose-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-tools/prisma-loader': patch
---

Avoid logging the environment variables directly
4 changes: 3 additions & 1 deletion src/prisma-yml/Variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ export class Variables {
} else {
const errorMessage = [
'Trying to populate non string value into',
` a string for variable ${matchedString}.`,
` a string for an environment variable.`,
' Please make sure the value of the property is a string.',
// Optionally, reference the variable name without its value:
// ` Variable reference: ${typeof matchedString === 'string' ? matchedString.replace(/=.*/, '= [REDACTED]') : ''}`
].join('');
this.out.warn(this.out.getErrorPrefix(this.fileName, 'warning') + errorMessage);
}
Expand Down
Loading