From 3d3299ee1322de200ef1382f64417a32b7d10aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julia=20Kr=C3=BCger?= Date: Wed, 9 May 2018 15:45:14 +0200 Subject: [PATCH] fix(registry-change): more context in logs --- jobs/registry-change.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/registry-change.js b/jobs/registry-change.js index 5d6b6f5f..06aea046 100644 --- a/jobs/registry-change.js +++ b/jobs/registry-change.js @@ -52,7 +52,7 @@ module.exports = async function ( }) if (!distTag) { - log.info('exited: dependency has no distTag') + log.info(`exited: ${dependency} has no distTag`) return } await npm.put(updatedAt(Object.assign(npmDbDoc, npmDoc))) @@ -61,7 +61,7 @@ module.exports = async function ( // so we can heavily optimise by exiting here // we want to handle different distTags in the future if (distTag !== 'latest') { - log.info('exited: dependency distTag is not latest') + log.info(`exited: ${dependency} distTag is ${distTag} (not latest)`) return } @@ -99,7 +99,7 @@ module.exports = async function ( log.info(`exited: no repoDocs found that depend on ${dependency}`) return } - log.info(`found ${packageFilesForUpdatedDependency.length} repoDocs that have that dependency`) + log.info(`found ${packageFilesForUpdatedDependency.length} repoDocs that use ${dependency}`) if (packageFilesForUpdatedDependency.length > 100) statsd.event('popular_package')