Skip to content

Commit

Permalink
fix: put config cache log behind logger.debug (#1911)
Browse files Browse the repository at this point in the history
* fix: put config cache log behind logger.debug

* Update orange-kings-compare.md
  • Loading branch information
rozenmd committed Sep 23, 2022
1 parent 68c8cf7 commit 16c2850
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .changeset/orange-kings-compare.md
@@ -0,0 +1,11 @@
---
"wrangler": patch
---

fix: put config cache log behind logger.debug

Prior to this change, wrangler would print `Retrieving cached values for...` after almost every single command.

After this change, you'll only see this message if you add `WRANGLER_DEBUG=true` before your command.

Closes #1808
2 changes: 1 addition & 1 deletion packages/wrangler/src/config-cache.ts
Expand Up @@ -32,7 +32,7 @@ const arrayFormatter = new Intl.ListFormat("en", {
function showCacheMessage(fields: string[], folder: string) {
if (!cacheMessageShown && isInteractive() && !CI.isCI()) {
if (fields.length > 0) {
logger.log(
logger.debug(
`Retrieving cached values for ${arrayFormatter.format(
fields
)} from ${path.relative(process.cwd(), folder)}`
Expand Down

0 comments on commit 16c2850

Please sign in to comment.