diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-10-03 11:25:13 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-10-04 07:17:06 +0400 |
commit | 9076d1e7dbefeb12aa2837a7d1a3b2d0f8bcf0df (patch) | |
tree | d59eae67f2ab8271d63a2c7b56249ee45fbbfa2c /lib/cache/add-local-tarball.js | |
parent | 7bee0429066fedcc9e6e962c043eb740b3792809 (diff) |
improve logging
Diffstat (limited to 'lib/cache/add-local-tarball.js')
-rw-r--r-- | lib/cache/add-local-tarball.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/cache/add-local-tarball.js b/lib/cache/add-local-tarball.js index 6112ba557..e84b66dd8 100644 --- a/lib/cache/add-local-tarball.js +++ b/lib/cache/add-local-tarball.js @@ -87,12 +87,16 @@ function addTmpTarball (tgz, pkgData, shasum, cb) { assert(shasum, "must have shasum by now") cb = inflight("addTmpTarball:" + tgz, cb) - if (!cb) return log.verbose("addTmpTarball", tgz, "already in flight; waiting") - log.verbose("addTmpTarball", tgz, "not in flight; verifying") + if (!cb) return log.verbose("addTmpTarball", tgz, "already in flight; not adding") + log.verbose("addTmpTarball", tgz, "not in flight; adding") // we already have the package info, so just move into place if (pkgData && pkgData.name && pkgData.version) { - log.verbose("addTmpTarball", "already have metadata; skipping unpack") + log.verbose( + "addTmpTarball", + "already have metadata; skipping unpack for", + pkgData.name + "@" + pkgData.version + ) return addTmpTarball_(tgz, pkgData, shasum, cb) } |