Skip to content

Commit

Permalink
fix: disable env file logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley committed Nov 29, 2023
1 parent 029314d commit a8eb6bb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-forks-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/platform-tools': minor
---

Disable .env file logging
11 changes: 10 additions & 1 deletion packages/tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ async function main() {
// Load env variables from .env using Next.js's utility
const env = loadEnvConfig(
process.cwd(),
process.env.NODE_ENV !== 'production'
process.env.NODE_ENV !== 'production',
{
info() {
// disable console.info calls for loaded env files
return
},
error(...args: any[]) {
console.error(...args)
},
}
)

const projectOptions = argv.project
Expand Down

0 comments on commit a8eb6bb

Please sign in to comment.