@@ -216,7 +216,7 @@ export default class Dev extends Command<typeof Dev> {
216216 write : flags . write ,
217217 unstable__forceLatest,
218218 onError : message => {
219- this . fail ( message ) ;
219+ this . logFailure ( message ) ;
220220 } ,
221221 } ) ,
222222 ) ;
@@ -229,7 +229,7 @@ export default class Dev extends Command<typeof Dev> {
229229 services,
230230 write : flags . write ,
231231 onError : message => {
232- this . fail ( message ) ;
232+ this . logFailure ( message ) ;
233233 } ,
234234 } ) ,
235235 ) ;
@@ -329,7 +329,7 @@ export default class Dev extends Command<typeof Dev> {
329329 return ;
330330 }
331331
332- this . success ( 'Composition successful' ) ;
332+ this . logSuccess ( 'Composition successful' ) ;
333333 this . log ( `Saving supergraph schema to ${ input . write } ` ) ;
334334 await writeFile ( resolve ( process . cwd ( ) , input . write ) , compositionResult . supergraphSdl , 'utf-8' ) ;
335335 }
@@ -387,7 +387,7 @@ export default class Dev extends Command<typeof Dev> {
387387 return ;
388388 }
389389
390- this . success ( 'Composition successful' ) ;
390+ this . logSuccess ( 'Composition successful' ) ;
391391 this . log ( `Saving supergraph schema to ${ input . write } ` ) ;
392392 await writeFile ( resolve ( process . cwd ( ) , input . write ) , compositionResult . supergraphSdl , 'utf-8' ) ;
393393 }
@@ -397,12 +397,12 @@ export default class Dev extends Command<typeof Dev> {
397397 serviceInputs : ServiceInput [ ] ,
398398 compose : ( services : Service [ ] ) => Promise < void > ,
399399 ) {
400- this . info ( 'Watch mode enabled' ) ;
400+ this . logInfo ( 'Watch mode enabled' ) ;
401401
402402 let services = await this . resolveServices ( serviceInputs ) ;
403403 await compose ( services ) ;
404404
405- this . info ( 'Watching for changes' ) ;
405+ this . logInfo ( 'Watching for changes' ) ;
406406
407407 let resolveWatchMode : ( ) => void ;
408408
@@ -419,25 +419,25 @@ export default class Dev extends Command<typeof Dev> {
419419 service => services . find ( s => s . name === service . name ) ! . sdl !== service . sdl ,
420420 )
421421 ) {
422- this . info ( 'Detected changes, recomposing' ) ;
422+ this . logInfo ( 'Detected changes, recomposing' ) ;
423423 await compose ( newServices ) ;
424424 services = newServices ;
425425 }
426426 } catch ( error ) {
427- this . fail ( String ( error ) ) ;
427+ this . logFailure ( String ( error ) ) ;
428428 }
429429
430430 timeoutId = setTimeout ( watch , watchInterval ) ;
431431 } ;
432432
433433 process . once ( 'SIGINT' , ( ) => {
434- this . info ( 'Exiting watch mode' ) ;
434+ this . logInfo ( 'Exiting watch mode' ) ;
435435 clearTimeout ( timeoutId ) ;
436436 resolveWatchMode ( ) ;
437437 } ) ;
438438
439439 process . once ( 'SIGTERM' , ( ) => {
440- this . info ( 'Exiting watch mode' ) ;
440+ this . logInfo ( 'Exiting watch mode' ) ;
441441 clearTimeout ( timeoutId ) ;
442442 resolveWatchMode ( ) ;
443443 } ) ;
0 commit comments