mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Trace process error in RunnerService.js (#955)
This commit is contained in:
committed by
TingluoHuang
parent
3e33b4c5f2
commit
be598f1e9b
@@ -30,7 +30,7 @@ var runService = function() {
|
|||||||
listener = childProcess.spawn(listenerExePath, ['run', '--startuptype', 'service'], { env: process.env });
|
listener = childProcess.spawn(listenerExePath, ['run', '--startuptype', 'service'], { env: process.env });
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Started listener process');
|
console.log(`Started listener process, pid: ${listener.pid}`);
|
||||||
|
|
||||||
listener.stdout.on('data', (data) => {
|
listener.stdout.on('data', (data) => {
|
||||||
process.stdout.write(data.toString('utf8'));
|
process.stdout.write(data.toString('utf8'));
|
||||||
@@ -40,6 +40,10 @@ var runService = function() {
|
|||||||
process.stdout.write(data.toString('utf8'));
|
process.stdout.write(data.toString('utf8'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
listener.on("error", (err) => {
|
||||||
|
console.log(`Runner listener fail to start with error ${err.message}`);
|
||||||
|
});
|
||||||
|
|
||||||
listener.on('close', (code) => {
|
listener.on('close', (code) => {
|
||||||
console.log(`Runner listener exited with error code ${code}`);
|
console.log(`Runner listener exited with error code ${code}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user