Updated loging for auto update and disabled logging on dev

This commit is contained in:
Patrick Fic
2020-10-26 13:44:49 -07:00
parent ad48326dc0
commit d986653845
3 changed files with 7 additions and 7 deletions

View File

@@ -243,19 +243,19 @@ function createTray() {
}
autoUpdater.on("checking-for-update", () => {
console.log("Checking for update...");
log.log("Checking for update...");
});
autoUpdater.on("update-available", (ev, info) => {
console.log("Update available.");
log.log("Update available.");
});
autoUpdater.on("update-not-available", (ev, info) => {
console.log("Update not available.");
log.log("Update not available.");
});
autoUpdater.on("error", (ev, err) => {
console.log("Error in auto-updater.");
log.log("Error in auto-updater.");
});
autoUpdater.on("download-progress", (ev, progressObj) => {
console.log("Download progress...");
log.log("Download progress...");
});
// autoUpdater.on("update-downloaded", (ev, info) => {
// console.log("Update downloaded; will install in 5 seconds");

View File

@@ -29,7 +29,7 @@ export function WatcherStartupAtom({ appSettings }) {
return (
<div>
<DataLabel label="Run Watcher on Startup??">
<DataLabel label="Run Watcher on Startup?">
<Switch
onChange={handleChange}
checked={appSettings && appSettings.runWatcherOnStartup}

View File

@@ -9,7 +9,7 @@ import App from "./App/App";
import "./index.css";
import { persistor, store } from "./redux/store";
require("dotenv").config();
LogRocket.init("imex/rps");
if (process.env.NODE_ENV === "production") LogRocket.init("imex/rps");
ReactDOM.render(
<Provider store={store}>