diff options
-rw-r--r-- | lib/utils/log.js | 4 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils/log.js b/lib/utils/log.js index 27306f64d..71f72c9b1 100644 --- a/lib/utils/log.js +++ b/lib/utils/log.js @@ -76,7 +76,6 @@ Object.defineProperty(log, "level", { get : function () { if (typeof SHOWLEVEL !== "undefined") return SHOWLEVEL var show = npm.config.get("loglevel") - if (!show) return logBuffer.push(arguments) show = show.split(",")[0] if (!isNaN(show)) show = +show else if (!LEVEL.hasOwnProperty(show)) { @@ -85,7 +84,8 @@ Object.defineProperty(log, "level", } if (isNaN(show)) show = LEVEL[show] else show = +show - return SHOWLEVEL = show + if (!waitForConfig || ini.resulved) SHOWLEVEL = show + return show } , set : function (l) { SHOWLEVEL = undefined diff --git a/package.json b/package.json index 251b7be37..55e5f2f68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "npm" , "description" : "A package manager for node" -, "version" : "0.1.27-8" +, "version" : "0.1.27-9" , "homepage" : "http://npmjs.org/" , "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)" , "contributors" : |