From c78da8379825eda02c2716741a8ebebfb4fddf36 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 4 Apr 2018 07:18:01 +0200 Subject: [PATCH] logs: debug log fileList length when retrieving --- lib/platform/github/index.js | 1 + lib/platform/gitlab/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index 58a3e2b5f7..80d3ec7d81 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -333,6 +333,7 @@ async function getFileList(branchName = config.baseBranch) { .filter(item => item.type === 'blob' && item.mode !== '120000') .map(item => item.path) .sort(); + logger.debug(`Retrieved fileList with length ${config.fileList.length}`); } catch (err) /* istanbul ignore next */ { if (err.statusCode === 409) { logger.debug('Repository is not initiated'); diff --git a/lib/platform/gitlab/index.js b/lib/platform/gitlab/index.js index b5c3c2c4c3..458b4e9f3b 100644 --- a/lib/platform/gitlab/index.js +++ b/lib/platform/gitlab/index.js @@ -134,6 +134,7 @@ async function getFileList(branchName = config.baseBranch) { .filter(item => item.type === 'blob' && item.mode !== '120000') .map(item => item.path) .sort(); + logger.debug(`Retrieved fileList with length ${config.fileList.length}`); } catch (err) { logger.info('Error retrieving git tree - no files detected'); config.fileList = []; -- GitLab