From 63f062b13a3949e3ea3c92cf0da56e34c88da564 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 3 Sep 2018 18:32:35 +0200
Subject: [PATCH] refactor: better debug cached pagination

---
 lib/platform/github/gh-got-wrapper.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js
index bc39d0f40f..c3fe00c262 100644
--- a/lib/platform/github/gh-got-wrapper.js
+++ b/lib/platform/github/gh-got-wrapper.js
@@ -48,11 +48,14 @@ async function get(path, options, retries = 5) {
         try {
           const cacheResult = await renovateCache.get(cacheNamespace, path);
           if (cacheResult.etag === etag) {
-            logger.trace({ path }, 'Returning cached paginated result');
+            logger.debug({ path }, 'Returning cached paginated result');
             res.body = cacheResult.body;
             return res;
           }
-          logger.trace({ path }, 'Outdated pagination cache');
+          logger.debug(
+            { oldEtag: cacheResult.etag, newEtag: etag, path },
+            'Outdated pagination cache'
+          );
         } catch (err) {
           logger.trace({ path }, 'Paginated cache miss');
         }
-- 
GitLab