Permalink
Browse files

[ux] Better logging output from apps started with jitsu install

  • Loading branch information...
Marak committed Nov 12, 2011
1 parent 195c112 commit 2b84bca2bb0640250c4525f559072ad305e08631
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/jitsu/commands/install.js
@@ -163,15 +163,19 @@ var install = module.exports = function (starterName, callback) {
// in the scripts.start property containing the word "node" in it
//
var pkg = JSON.parse(fs.readFileSync(process.cwd() + '/package.json').toString());
+
+ winston.warn(('Outputting logs from: ' + starterName));
+ console.log('\n');
+
app = spawn('node', [pkg.scripts.start]);
app.stdout.on('data', function (data) {
- winston.data(data);
+ console.log(data.toString());
});
app.stderr.on('data', function (data) {
- winston.error(data);
+ console.log(data.toString());
});
app.on('exit', function (code) {
- winston.data('Application exited ', code);
+ console.log('Application exited ', code);
});
}

0 comments on commit 2b84bca

Please sign in to comment.