diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-24 15:02:56 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-24 15:02:56 +0200 |
| commit | 3893b5d358e3e36263c0789176434b31af9c8a96 (patch) | |
| tree | 214278780a2d90f6a737ed1b26201b5d8e8e6998 /app/relay | |
| parent | 8686c177070713c77c8edeaf0f229213f76a3e53 (diff) | |
log stderr
Diffstat (limited to 'app/relay')
| -rw-r--r-- | app/relay/runner.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/relay/runner.js b/app/relay/runner.js index 7203956..c72b8cc 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -187,6 +187,10 @@ export function run_task_with_activity(task, module, activity, preempt=false, wa subprocess.stderr.on('data', buf => { const data = buf.toString('utf8') watch && remote.emit('task_res', { type: 'stderr', processor, data }) + if (activity.listen) { + const res = activity.listen(task, data, count++) + if (res) remote.emit('task_res', res) + } }) let finished = false |
