From 2568e40a395b809fb34125b3383f9f2616004f73 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 6 Jun 2012 14:48:24 -0700 Subject: Replace the log util with npmlog module This feels so good. lib/utils/log.js is the worst kind of glue code that keeps the npm project from being properly abstracted into independent pieces. In the process, also cleaned up a lot of unproductive logging, and made the npm-debug.log generated on errors be a bit more easy to read. --- lib/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/update.js') diff --git a/lib/update.js b/lib/update.js index 69b9f98e8..46d32678e 100644 --- a/lib/update.js +++ b/lib/update.js @@ -12,7 +12,7 @@ update.usage = "npm update [pkg]" var npm = require("./npm.js") , lifecycle = require("./utils/lifecycle.js") , asyncMap = require("slide").asyncMap - , log = require("./utils/log.js") + , log = require("npmlog") // load these, just so that we know that they'll be available, in case // npm itself is getting overwritten. @@ -23,7 +23,7 @@ update.completion = npm.commands.outdated.completion function update (args, cb) { npm.commands.outdated(args, true, function (er, outdated) { - log(outdated, "outdated updating") + log.info("outdated", "updating", outdated) if (er) return cb(er) asyncMap(outdated, function (ww, cb) { -- cgit v1.2.3