diff --git a/public/electron.js b/public/electron.js index 30d54d3..579dcdb 100644 --- a/public/electron.js +++ b/public/electron.js @@ -63,14 +63,8 @@ const createWindow = () => { mainWindow.show(); mainWindow.loadURL(startUrl).then(() => { - console.info('pyCat '); + process.env.DEV && mainWindow.webContents.openDevTools(); }); - console.log('LOOK here:'); - console.log(startUrl); - console.log(String(Object.assign(new URL('http://localhost:3000'), - {pathname: ''} - ))); - process.env.DEV && mainWindow.webContents.openDevTools(); mainWindow.on('closed', function() { pycatService.shutdown(); diff --git a/src/jsx/Converter.js b/src/jsx/Converter.js index 16ba49d..bcf81f7 100644 --- a/src/jsx/Converter.js +++ b/src/jsx/Converter.js @@ -37,7 +37,7 @@ const Converter = (props) => { * @param {object} message - response */ const onMessage = (message) => { - console.log(message); + console.info(message); }; /** diff --git a/src/jsx/socket.io/Socket.jsx b/src/jsx/socket.io/Socket.jsx index 7edb380..a7fc3de 100644 --- a/src/jsx/socket.io/Socket.jsx +++ b/src/jsx/socket.io/Socket.jsx @@ -18,13 +18,13 @@ class Socket extends React.Component { this.socket.status = 'initialized'; this.socket.on('connect', () => { - console.log('socket.io connect'); + console.info('[Socket] connect'); this.socket.status = 'connected'; debug('connected'); }); this.socket.on('disconnect', () => { - console.log('socket.io disconnect'); + console.info('[Socket] disconnect'); this.socket.status = 'disconnected'; debug('disconnect'); }); diff --git a/src/serviceWorker.js b/src/serviceWorker.js index 2fd7fe6..09dd216 100644 --- a/src/serviceWorker.js +++ b/src/serviceWorker.js @@ -43,7 +43,7 @@ export function register(config) { // Add some additional logging to localhost, pointing developers to the // service worker/PWA documentation. navigator.serviceWorker.ready.then(() => { - console.log( + console.info( 'This web app is being served cache-first by a service ' + 'worker. To learn more, visit https://bit.ly/CRA-PWA', ); @@ -75,7 +75,7 @@ function registerValidSW(swUrl, config) { // At this point, the updated precached content has been fetched, // but the previous service worker will still serve the older // content until all client tabs are closed. - console.log( + console.info( 'New content is available and will be used when all ' + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.', ); @@ -88,7 +88,7 @@ function registerValidSW(swUrl, config) { // At this point, everything has been precached. // It's the perfect time to display a // "Content is cached for offline use." message. - console.log('Content is cached for offline use.'); + console.info('Content is cached for offline use.'); // Execute callback if (config && config.onSuccess) {