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
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-24 07:35:10 +0400
committerisaacs <i@izs.me>2010-08-24 07:35:10 +0400
commit0930d67ec01f0c24acc2c7c0e7f228cd90b15c23 (patch)
treecfc908233253d06b3098e3a4a49e8cbc96db37a0 /cli.js
parentc9328292fb35ad6421efd85c4a19f694216ace90 (diff)
log configgy pudding
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli.js b/cli.js
index 303b5b2e3..9b59d446d 100755
--- a/cli.js
+++ b/cli.js
@@ -4,7 +4,7 @@
// might conceivably be a bootstrap attempt.
var log = require("./lib/utils/log")
-log("ok", "it worked if it ends with")
+log.info("ok", "it worked if it ends with")
var fs = require("./lib/utils/graceful-fs")
, path = require("path")
@@ -23,7 +23,7 @@ var fs = require("./lib/utils/graceful-fs")
, command
, flagsDone
-log(argv, "cli")
+log.verbose(argv, "cli")
while (arg = argv.shift()) {
if (!key && (arg === "-h" || arg === "-?")) arg = "--help"
@@ -54,7 +54,7 @@ if (printVersion) {
} else log(npm.version, "version")
process.on("uncaughtException", errorHandler)
-process.on("exit", function () { if (!itWorked) log("not ok") })
+process.on("exit", function () { if (!itWorked) log.win("not ok") })
var itWorked = false
@@ -85,7 +85,7 @@ if (!command && !conf.help) {
function errorHandler (er) {
if (!er) {
itWorked = true
- log("ok")
+ log.win("ok")
return rm(npm.tmp, function (er) { process.exit(0) })
}
log.error(er)