Skip to content
Snippets Groups Projects
Commit c78da837 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: debug log fileList length when retrieving

parent 4ae2e18a
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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 = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment