further cleanup input

pull/353/head
Frostebite 2022-04-05 04:09:04 +01:00
parent c648446252
commit 27c3a51e7a
3 changed files with 1 additions and 41 deletions

20
dist/index.js vendored
View File

@ -790,35 +790,15 @@ class CloudRunnerSystem {
throwError(error); throwError(error);
} }
if (stderr) { if (stderr) {
remote_client_logger_1.RemoteClientLogger.log('stderr');
const diagnosticOutput = `${stderr.toString()}`; const diagnosticOutput = `${stderr.toString()}`;
if (!suppressLogs) { if (!suppressLogs) {
remote_client_logger_1.RemoteClientLogger.logCliDiagnostic(diagnosticOutput); remote_client_logger_1.RemoteClientLogger.logCliDiagnostic(diagnosticOutput);
} }
output += diagnosticOutput; output += diagnosticOutput;
} }
remote_client_logger_1.RemoteClientLogger.log('stdout');
const outputChunk = `${stdout}`; const outputChunk = `${stdout}`;
output += outputChunk; output += outputChunk;
}); });
child.on('message', (message) => {
remote_client_logger_1.RemoteClientLogger.log('message');
const outputChunk = `${message}`;
output += outputChunk;
});
child.on('error', (error) => {
remote_client_logger_1.RemoteClientLogger.log('error');
remote_client_logger_1.RemoteClientLogger.log(error.toString());
if (error) {
throwError(error);
}
});
child.on('disconnect', (error) => {
remote_client_logger_1.RemoteClientLogger.log('disconnect');
if (error) {
throwError(error);
}
});
child.on('close', (code) => { child.on('close', (code) => {
remote_client_logger_1.RemoteClientLogger.log('close'); remote_client_logger_1.RemoteClientLogger.log('close');
if (!suppressLogs) { if (!suppressLogs) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -15,35 +15,15 @@ export class CloudRunnerSystem {
throwError(error); throwError(error);
} }
if (stderr) { if (stderr) {
RemoteClientLogger.log('stderr');
const diagnosticOutput = `${stderr.toString()}`; const diagnosticOutput = `${stderr.toString()}`;
if (!suppressLogs) { if (!suppressLogs) {
RemoteClientLogger.logCliDiagnostic(diagnosticOutput); RemoteClientLogger.logCliDiagnostic(diagnosticOutput);
} }
output += diagnosticOutput; output += diagnosticOutput;
} }
RemoteClientLogger.log('stdout');
const outputChunk = `${stdout}`; const outputChunk = `${stdout}`;
output += outputChunk; output += outputChunk;
}); });
child.on('message', (message) => {
RemoteClientLogger.log('message');
const outputChunk = `${message}`;
output += outputChunk;
});
child.on('error', (error) => {
RemoteClientLogger.log('error');
RemoteClientLogger.log(error.toString());
if (error) {
throwError(error);
}
});
child.on('disconnect', (error) => {
RemoteClientLogger.log('disconnect');
if (error) {
throwError(error);
}
});
child.on('close', (code) => { child.on('close', (code) => {
RemoteClientLogger.log('close'); RemoteClientLogger.log('close');
if (!suppressLogs) { if (!suppressLogs) {