Permalink
Browse files

Whiskey - log (at info level) when a process is stopped

  • Loading branch information...
1 parent a29eb55 commit e7fbd157ad1f4b8ac539e82d5b8b6144e0d45bd4 @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 e7fbd15

Please sign in to comment.