Skip to content

Commit d70a611

Browse files
refactor(cli): remove promise on log (#1249)
* Remove promise * Empty * style: resolve style guide violations [ci-lint-fix]
1 parent bf71525 commit d70a611

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/cli/source/utils/process.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class Process implements Contracts.Cli.Process {
7979
});
8080
}
8181

82-
public async log(showErrors: boolean, lines: number): Promise<void> {
82+
public log(showErrors: boolean, lines: number): void {
8383
this.app.get<AbortMissingProcess>(Identifiers.Cli.Action.AbortMissingProcess).execute(this.#processName);
8484

8585
const proc = this.processManager.describe(this.#processName);
@@ -94,7 +94,10 @@ export class Process implements Contracts.Cli.Process {
9494
`Tailing last ${lines} lines for [${this.#processName}] process (change the value with --lines option)`,
9595
);
9696

97-
console.log((await readLastLines.read(file, lines)).trim());
97+
void readLastLines.read(file, lines).then((output) => {
98+
console.log(output.trim());
99+
return output;
100+
});
98101

99102
const log = new Tail(file);
100103

0 commit comments

Comments
 (0)