Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-28 01:09:18 +0400
committerisaacs <i@izs.me>2010-08-28 01:09:18 +0400
commite79f49d4aaa8704b1dda1ab2edddd5e261529b42 (patch)
treea83fa8792c52ece4e6b82ec9524e4ed7de7fcfb0
parentebca9b4bc88fe7989d76d63d4ffbf3ba3d9e0ead (diff)
-rw-r--r--lib/utils/log.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/log.js b/lib/utils/log.js
index 71f72c9b1..f9021e3a9 100644
--- a/lib/utils/log.js
+++ b/lib/utils/log.js
@@ -75,7 +75,7 @@ log.waitForConfig = function () { waitForConfig = true }
Object.defineProperty(log, "level",
{ get : function () {
if (typeof SHOWLEVEL !== "undefined") return SHOWLEVEL
- var show = npm.config.get("loglevel")
+ var show = npm.config.get("loglevel") || ''
show = show.split(",")[0]
if (!isNaN(show)) show = +show
else if (!LEVEL.hasOwnProperty(show)) {