File tree Expand file tree Collapse file tree
packages/cli/source/utils Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments