File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,15 @@ export class AppService implements AppServiceTrait {
5656 } ) ;
5757 app . whenReady ( ) . then (
5858 async ( ) => {
59+ log . info ( `Starting service ${ ServiceType . maa } ...` ) ;
5960 await this . _maaService . create ( ) ;
61+ log . info ( `Service ${ ServiceType . maa } started` ) ;
62+ log . info ( `Starting service ${ ServiceType . tray } ...` ) ;
6063 this . _trayService . create ( ) ;
64+ log . info ( `Service ${ ServiceType . tray } started` ) ;
65+ log . info ( `Starting service ${ ServiceType . window } ...` ) ;
6166 this . _windowService . getWindow ( WindowType . main ) . create ( ) ;
67+ log . info ( `Service ${ ServiceType . window } started` ) ;
6268 log . info ( `${ packageJson . productName } is ready` ) ;
6369 } ,
6470 ( ) => { } ,
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ export class MaaService implements MaaServiceTrait {
2020 @inject ( ServiceType . game )
2121 private _gameService : GameService ,
2222 ) {
23+ Global . log_dir = LOG_PATH ;
24+ Global . stdout_level = 'Off' ;
2325 this . _resource . notify = ( message , details ) => {
2426 log . info ( message , details ) ;
2527 } ;
@@ -148,8 +150,6 @@ export class MaaService implements MaaServiceTrait {
148150 }
149151
150152 async create ( ) {
151- Global . log_dir = LOG_PATH ;
152- Global . stdout_level = 'Off' ;
153153 // Global.show_hit_draw = true;
154154 this . _gameService . registerToResource ( this . _resource ) ;
155155 return await this . _resource . post_bundle ( RESOURCES_PATH ) . wait ( ) . succeeded ;
You can’t perform that action at this time.
0 commit comments