Permalink
Browse files

do not log if silent

  • Loading branch information...
1 parent 94df2f5 commit c95cf086e5b97dbb48ff95a72517b203a8f29eab @Raynos Raynos committed with isaacs Apr 8, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/utils/lifecycle.js
@@ -1,4 +1,3 @@
-
exports = module.exports = lifecycle
exports.cmd = cmd
@@ -161,7 +160,9 @@ function runCmd (note, cmd, pkg, env, stage, wd, unsafe, cb) {
var user = unsafe ? null : npm.config.get("user")
, group = unsafe ? null : npm.config.get("group")
- console.log(note)
+ if (log.level !== 'silent') {
+ console.log(note)
+ }
log.verbose("unsafe-perm in lifecycle", unsafe)
if (process.platform === "win32") {

0 comments on commit c95cf08

Please sign in to comment.