Permalink
Browse files

typo

  • Loading branch information...
1 parent ebca9b4 commit e79f49d4aaa8704b1dda1ab2edddd5e261529b42 @isaacs isaacs committed Aug 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils/log.js
View
@@ -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)) {

0 comments on commit e79f49d

Please sign in to comment.