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>2012-06-07 01:48:24 +0400
committerisaacs <i@izs.me>2012-06-07 01:56:35 +0400
commit2568e40a395b809fb34125b3383f9f2616004f73 (patch)
treeb770c89d4ed5a46341bf3b42e563a7fbf110af32 /lib/star.js
parentd4b2d1149a0f2b56467ebeebd36e21d3a2bfe48a (diff)
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.
Diffstat (limited to 'lib/star.js')
-rw-r--r--lib/star.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/star.js b/lib/star.js
index d84fa02ed..2ad818479 100644
--- a/lib/star.js
+++ b/lib/star.js
@@ -3,7 +3,7 @@ module.exports = star
var npm = require("./npm.js")
, registry = require("./utils/npm-registry-client/index.js")
- , log = require("./utils/log.js")
+ , log = require("npmlog")
, asyncMap = require("slide").asyncMap
, output = require("./utils/output.js")
@@ -26,7 +26,7 @@ function star (args, cb) {
registry.star(pkg, using, function (er, data, raw, req) {
if (!er) {
output.write(s + " "+pkg, npm.config.get("outfd"))
- log.verbose(data, "back from star/unstar")
+ log.verbose("star", data)
}
cb(er, data, raw, req)
})