From 35070bad5884a74758cb9bcd5b43daa735ee7267 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Thu, 12 Oct 2017 11:41:47 -0500 Subject: [PATCH] Remove debug loggers --- webpack/config/actions.ts | 1 - webpack/connectivity/connect_device.ts | 2 -- webpack/device.ts | 1 - webpack/entry.tsx | 2 -- 4 files changed, 6 deletions(-) diff --git a/webpack/config/actions.ts b/webpack/config/actions.ts index 874a24003..03760108c 100644 --- a/webpack/config/actions.ts +++ b/webpack/config/actions.ts @@ -6,7 +6,6 @@ import { Session } from "../session"; export function ready(): Thunk { return (dispatch, getState) => { const state = Session.getAll() || getState().auth; - console.log("HELLO?"); if (state) { didLogin(state, dispatch); } diff --git a/webpack/connectivity/connect_device.ts b/webpack/connectivity/connect_device.ts index f3ba44916..163481b4f 100644 --- a/webpack/connectivity/connect_device.ts +++ b/webpack/connectivity/connect_device.ts @@ -108,7 +108,6 @@ const onStatus = (dispatch: Function, getState: GetState) => const onSent = (/** The MQTT Client Object (bot.client) */ client: {}) => (any: {}) => { const theValue = get(client, "connected", false); - console.log("VALUE IS: " + theValue); theValue ? dispatchNetworkUp("user.mqtt") : dispatchNetworkDown("user.mqtt"); }; @@ -141,7 +140,6 @@ const onOnline = () => dispatchNetworkUp("user.mqtt"); const attachEventListeners = (bot: Farmbot, dispatch: Function, getState: GetState) => { - bot.on("*", function () { console.log(arguments); }); bot.on("online", onOnline); bot.on("offline", onOffline); bot.on("sent", onSent(bot.client)); diff --git a/webpack/device.ts b/webpack/device.ts index a200203a2..3aa58c35a 100644 --- a/webpack/device.ts +++ b/webpack/device.ts @@ -18,7 +18,6 @@ export function fetchNewDevice(oldToken: AuthState): Promise { return device .connect() .then(() => { - console.log(2); return device; }, () => bail("NO CONNECT")); }); diff --git a/webpack/entry.tsx b/webpack/entry.tsx index c9cc8f50b..1e14126b4 100644 --- a/webpack/entry.tsx +++ b/webpack/entry.tsx @@ -17,5 +17,3 @@ detectLanguage().then((config) => { store.dispatch(ready()); }); }); - -console.log("Should trigger rebuild.");