Skip to content

Commit

Permalink
👌 IMPROVE: add info emoji to internal output
Browse files Browse the repository at this point in the history
  • Loading branch information
scomans committed Oct 3, 2024
1 parent 5492cee commit cc5b07a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions apps/frontend/src/app/services/execution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ExecutionService {
const channel = this.channelRepository.getChannel(channelId);
this.addLogLine(
channelId,
`${ channel.name } exited with exit code: ${ Number(code) }`,
`ℹ️ ${ channel.name } exited with exit code: ${ Number(code) }`,
'info',
);
this.executables.get(channel.id)?.status.next(ExecuteStatus.STOPPED);
Expand Down Expand Up @@ -125,7 +125,7 @@ export class ExecutionService {
this.executables.get(channel.id).status.next(ExecuteStatus.WAITING);
this.addLogLine(
channel.id,
`${ channel.name } is waiting to start...`,
`ℹ️ ${ channel.name } is waiting to start...`,
'info',
);
const waiter = CancelToken.build();
Expand All @@ -144,7 +144,7 @@ export class ExecutionService {
if (waiter.token.isCancelled()) {
this.addLogLine(
channel.id,
`Waiting stopped for ${ channel.name }`,
`ℹ️ Waiting stopped for ${ channel.name }`,
'info',
);
this.executables.get(channel.id).status.next(ExecuteStatus.STOPPED);
Expand All @@ -155,7 +155,7 @@ export class ExecutionService {
}
this.addLogLine(
channel.id,
`Starting ${ channel.name } >>> ${ channel.executable } ${ channel.arguments.join(' ') }`,
`ℹ️ Starting ${ channel.name } >>> ${ channel.executable } ${ channel.arguments.join(' ') }`,
'info',
);

Expand Down Expand Up @@ -195,7 +195,7 @@ export class ExecutionService {
executable.pid = pid;
this.addLogLine(
channel.id,
`${ channel.name } started with PID: ${ pid }`,
`ℹ️ ${ channel.name } started with PID: ${ pid }`,
'info',
);
}
Expand All @@ -206,7 +206,7 @@ export class ExecutionService {
const result = await killProcess(pid);
this.addLogLine(
channel.id,
`Killed ${ result.length - 1 } child processes of ${ channel.name }`,
`ℹ️ Killed ${ result.length - 1 } child processes of ${ channel.name }`,
'info',
);
return result; // TODO check result
Expand All @@ -228,5 +228,4 @@ export class ExecutionService {
}),
);
}

}

0 comments on commit cc5b07a

Please sign in to comment.