diff options
author | isaacs <i@izs.me> | 2010-08-28 01:09:18 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-28 01:09:18 +0400 |
commit | e79f49d4aaa8704b1dda1ab2edddd5e261529b42 (patch) | |
tree | a83fa8792c52ece4e6b82ec9524e4ed7de7fcfb0 | |
parent | ebca9b4bc88fe7989d76d63d4ffbf3ba3d9e0ead (diff) |
typov0.1.27-9
-rw-r--r-- | lib/utils/log.js | 2 |
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)) { |