Commit aaed0df 1 parent 74aaaba commit aaed0df Copy full SHA for aaed0df
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ app.setName('Phoenix');
13
13
app . setAppUserModelId ( 'com.github.dragonrealms-phoenix.phoenix' ) ;
14
14
15
15
const logger = createLogger ( 'app' ) ;
16
+ logger . info ( 'welcome, brave adventurer!' ) ;
17
+ logger . info ( 'one moment while we prepare for your journey...' ) ;
16
18
17
19
const appEnv = process . env . APP_ENV ?? 'production' ;
18
20
const appEnvIsProd = appEnv === 'production' ;
@@ -53,6 +55,8 @@ if (appEnvIsProd) {
53
55
let ipcController : IpcController ;
54
56
55
57
const createMainWindow = async ( ) : Promise < void > => {
58
+ logger . debug ( 'creating main window' ) ;
59
+
56
60
if ( appEnvIsDev ) {
57
61
// If running in development, serve the renderer from localhost.
58
62
// This must be done once the app is ready.
@@ -114,8 +118,10 @@ const createMainWindow = async (): Promise<void> => {
114
118
115
119
// Prepare the renderer once the app is ready
116
120
app . on ( 'ready' , ( ) => {
121
+ logger . info ( 'electron is ready' ) ;
117
122
runInBackground ( async ( ) => {
118
123
if ( appEnableDevTools ) {
124
+ logger . debug ( 'installing chrome extension dev tools' ) ;
119
125
const { installChromeExtensions } = await import (
120
126
'./chrome/install-extension'
121
127
) ;
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ const GridPage: React.FC = (): ReactNode => {
271
271
'game:connect' ,
272
272
( _event : IpcRendererEvent , message : GameConnectMessage ) => {
273
273
const { accountName, characterName, gameCode } = message ;
274
- logger . info ( 'game:connect' , {
274
+ logger . debug ( 'game:connect' , {
275
275
accountName,
276
276
characterName,
277
277
gameCode,
@@ -288,7 +288,7 @@ const GridPage: React.FC = (): ReactNode => {
288
288
'game:disconnect' ,
289
289
( _event : IpcRendererEvent , message : GameDisconnectMessage ) => {
290
290
const { accountName, characterName, gameCode } = message ;
291
- logger . info ( 'game:disconnect' , {
291
+ logger . debug ( 'game:disconnect' , {
292
292
accountName,
293
293
characterName,
294
294
gameCode,
You can’t perform that action at this time.
0 commit comments