@@ -21,7 +21,8 @@ let currentDatabaseType: string;
2121 */
2222ipcMain . on ( 'connect' , async ( message : Electron . IpcMainEvent , index : number ) => {
2323 try {
24- console . log ( 'electron/routes/data.ts, ipcMain.on(connect): 1 Attempting to connect to DB' ) ;
24+ // console.log('electron/routes/data.ts, ipcMain.on(connect): 1 Attempting to connect to DB');
25+
2526 // Extract databaseType and URI from settings.json at particular index
2627 // get index from application context
2728 const fileContents = fs . readFileSync ( path . resolve ( __dirname , '../user/settings.json' ) , 'utf8' ) ;
@@ -30,13 +31,13 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, index: number) => {
3031 // We get index from sidebar container: which is the mapplication (DEMO)
3132 const [ databaseType , URI ] = [ userDatabase [ 1 ] , userDatabase [ 2 ] ] ;
3233
33- console . log ( 'electron/routes/data.ts, ipcMain.on(connect): 2 pre-connect' ) ;
34+ // console.log('electron/routes/data.ts, ipcMain.on(connect): 2 pre-connect');
3435
3536 // Connect to the proper database
3637 if ( databaseType === 'MongoDB' ) await connectMongo ( index , URI ) ;
3738 if ( databaseType === 'SQL' ) pool = await connectPostgres ( index , URI ) ;
3839
39- console . log ( 'electron/routes/data.ts, ipcMain.on(connect): 3 connected' ) ;
40+ // console.log('electron/routes/data.ts, ipcMain.on(connect): 3 connected');
4041
4142 // Currently set to a global variable
4243 currentDatabaseType = databaseType ;
@@ -53,7 +54,8 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, index: number) => {
5354 */
5455ipcMain . on ( 'servicesRequest' , async ( message : Electron . IpcMainEvent ) => {
5556 try {
56- console . log ( 'electron/routes/data.ts, ipcMain.on(servicesRequest): 4 Requesting application microservices' ) ;
57+ // console.log('electron/routes/data.ts, ipcMain.on(servicesRequest): 4 Requesting application microservices');
58+
5759 let result : any ;
5860
5961 // Mongo Database
@@ -83,7 +85,8 @@ ipcMain.on('servicesRequest', async (message: Electron.IpcMainEvent) => {
8385 */
8486ipcMain . on ( 'commsRequest' , async ( message : Electron . IpcMainEvent ) => {
8587 try {
86- console . log ( `Requesting communication data` )
88+ // console.log(`Requesting communication data`)
89+
8790 let result : any ;
8891
8992 // Mongo Database
@@ -115,7 +118,8 @@ ipcMain.on('commsRequest', async (message: Electron.IpcMainEvent) => {
115118 */
116119ipcMain . on ( 'healthRequest' , async ( message : Electron . IpcMainEvent , service : string ) => {
117120 try {
118- console . log ( `Requesting microservice health for "${ service } "` )
121+ // console.log(`Requesting microservice health for "${service}"`)
122+
119123 let result : any ;
120124
121125 // Mongo Database
@@ -158,7 +162,8 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
158162 */
159163ipcMain . on ( 'dockerRequest' , async ( message , service ) => {
160164 try {
161- console . log ( `Requesting container information for "${ service } "` )
165+ // console.log(`Requesting container information for "${service}"`)
166+
162167 let result : any ;
163168 // Mongo Database
164169 if ( currentDatabaseType === 'MongoDB' ) {
0 commit comments