Skip to content

Commit

Permalink
fix: exclude "exit with 0" useless message from zx execution
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jun 8, 2023
1 parent 924e202 commit 9131478
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class NativeService implements INativeService {
case ZxWorkerControlActions.start: {
if (message.message !== undefined) {
observer.next(message.message);
logger.debug(`zxWorker execute start with message`, { message: message.message });
}
break;
}
Expand All @@ -132,7 +133,7 @@ export class NativeService implements INativeService {
}
case ZxWorkerControlActions.ended: {
const endedMessage = message.message ?? 'get ZxWorkerControlActions.ended without message';
observer.next(endedMessage);
logger.info(`zxWorker execute ended with message`, { message: endedMessage });
break;
}
}
Expand All @@ -142,7 +143,7 @@ export class NativeService implements INativeService {
case 'stderr':
case 'stdout': {
observer.next(message.message);

logger.debug(`zxWorker execute has stdout/stderr`, { message: message.message });
break;
}
case 'execution': {
Expand Down

0 comments on commit 9131478

Please sign in to comment.