From 3aa94d46f44f09a31a8fcc0fa514b02ebffe1126 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 21 Oct 2022 08:02:05 +0200
Subject: [PATCH] chore: no meta for debug statements

---
 lib/util/http/queue.ts                           | 2 +-
 lib/workers/repository/package-files.ts          | 5 +----
 lib/workers/repository/process/extract-update.ts | 4 +++-
 lib/workers/repository/process/write.ts          | 5 ++---
 4 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/lib/util/http/queue.ts b/lib/util/http/queue.ts
index a645f905f1..731fecd1ac 100644
--- a/lib/util/http/queue.ts
+++ b/lib/util/http/queue.ts
@@ -18,7 +18,7 @@ export function getQueue(url: string): PQueue | null {
     queue = null; // null represents "no queue", as opposed to undefined
     const concurrency = getRequestLimit(url);
     if (concurrency) {
-      logger.debug({ concurrency, host }, 'Using queue');
+      logger.debug(`Using queue: host=${host}, concurrency=${concurrency}`);
       queue = new PQueue({ concurrency });
     } else {
       logger.debug({ host }, 'No concurrency limits');
diff --git a/lib/workers/repository/package-files.ts b/lib/workers/repository/package-files.ts
index 6bd9c43b3a..0dc26a8c7d 100644
--- a/lib/workers/repository/package-files.ts
+++ b/lib/workers/repository/package-files.ts
@@ -18,10 +18,7 @@ export class PackageFiles {
   }
 
   static clear(): void {
-    logger.debug(
-      { baseBranches: [...this.data.keys()] },
-      'PackageFiles.clear() - Package files deleted'
-    );
+    logger.debug('PackageFiles.clear() - Package files deleted');
     this.data.clear();
   }
 
diff --git a/lib/workers/repository/process/extract-update.ts b/lib/workers/repository/process/extract-update.ts
index 2ca6d3344a..44894838d2 100644
--- a/lib/workers/repository/process/extract-update.ts
+++ b/lib/workers/repository/process/extract-update.ts
@@ -79,7 +79,9 @@ export async function extract(
     cachedExtract?.sha === baseBranchSha &&
     cachedExtract?.configHash === configHash
   ) {
-    logger.debug({ baseBranch, baseBranchSha }, 'Found cached extract');
+    logger.debug(
+      `Found cached extract for ${baseBranch!} (sha=${baseBranchSha})`
+    );
     packageFiles = cachedExtract.packageFiles;
     try {
       for (const files of Object.values(packageFiles)) {
diff --git a/lib/workers/repository/process/write.ts b/lib/workers/repository/process/write.ts
index 7b8600fc10..66bca98b1e 100644
--- a/lib/workers/repository/process/write.ts
+++ b/lib/workers/repository/process/write.ts
@@ -102,13 +102,12 @@ export async function writeUpdates(
       .join(', ')}`
   );
   const prsRemaining = await getPrsRemaining(config, branches);
-  logger.debug({ prsRemaining }, 'Calculated maximum PRs remaining this run');
+  logger.debug(`Calculated maximum PRs remaining this run: ${prsRemaining}`);
   setMaxLimit(Limit.PullRequests, prsRemaining);
 
   const branchesRemaining = await getBranchesRemaining(config, branches);
   logger.debug(
-    { branchesRemaining },
-    'Calculated maximum branches remaining this run'
+    `Calculated maximum branches remaining this run: ${branchesRemaining}`
   );
   setMaxLimit(Limit.Branches, branchesRemaining);
 
-- 
GitLab