Updated loging for auto update and disabled logging on dev
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user