diff options
author | isaacs <i@izs.me> | 2010-08-24 07:35:10 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-24 07:35:10 +0400 |
commit | 0930d67ec01f0c24acc2c7c0e7f228cd90b15c23 (patch) | |
tree | cfc908233253d06b3098e3a4a49e8cbc96db37a0 /cli.js | |
parent | c9328292fb35ad6421efd85c4a19f694216ace90 (diff) |
log configgy pudding
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |