Permalink
Browse files

Merge pull request #38 from cloudkick/whiskey-fixes

Whiskey - log (at info level) when a process is stopped
  • Loading branch information...
2 parents a29eb55 + e7fbd15 commit 87934de2a2fa34e929bf9a2fea8e2534b94d9269 @lakshmi-kannan lakshmi-kannan committed Jun 20, 2012
Showing with 6 additions and 1 deletion.
  1. BIN lib/process_runner/.runner.js.swp
  2. +6 −1 lib/process_runner/runner.js
Binary file not shown.
@@ -365,8 +365,13 @@ ProcessRunner.prototype._startProcess = function(options, callback) {
child.stderr.on('data', writeToLog.bind(null, obj.log_file_stream));
child.on('exit', function onExit(code) {
- log.debugf('Process [bold]${name}[/bold] exited with code ${code}',
+ if (obj.killed) {
+ log.debugf('Process [bold]${name}[/bold] exited with code ${code}',
{'name': options.name, 'code': code});
+ } else {
+ log.infof('Process [bold]${name}[/bold] exited with code ${code}',
+ {'name': options.name, 'code': code});
+ }
});
self._processes.push(obj);

0 comments on commit 87934de

Please sign in to comment.