Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Close #1510 Don't write npm-debug.log if loglevel is silent

  • Loading branch information...
commit a73862532b0525ebb85f1898c87179f231bd3528 1 parent 3b8466d
@isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/utils/error-handler.js
View
2  lib/utils/error-handler.js
@@ -203,7 +203,7 @@ function exit (code) {
var doExit = npm.config.get("_exit")
log.verbose([code, doExit], "exit")
- if (code) writeLogFile(reallyExit)
+ if (code && log.level !== log.LEVEL.silent) writeLogFile(reallyExit)
else rm("npm-debug.log", function () { rm(npm.tmp, reallyExit) })
function reallyExit() {
Please sign in to comment.
Something went wrong with that request. Please try again.