From 16c28502593c27a1b372d8056a55cdee32b5c4cf Mon Sep 17 00:00:00 2001 From: Max Rozen <3822106+rozenmd@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:02:23 +0200 Subject: [PATCH] fix: put config cache log behind logger.debug (#1911) * fix: put config cache log behind logger.debug * Update orange-kings-compare.md --- .changeset/orange-kings-compare.md | 11 +++++++++++ packages/wrangler/src/config-cache.ts | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/orange-kings-compare.md diff --git a/.changeset/orange-kings-compare.md b/.changeset/orange-kings-compare.md new file mode 100644 index 00000000000..16a40a860a2 --- /dev/null +++ b/.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 diff --git a/packages/wrangler/src/config-cache.ts b/packages/wrangler/src/config-cache.ts index e93758bf32d..ee6b7a13b39 100644 --- a/packages/wrangler/src/config-cache.ts +++ b/packages/wrangler/src/config-cache.ts @@ -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)}`