Remove debug loggers

This commit is contained in:
Rick Carlino 2017-10-12 11:41:47 -05:00
parent fbf8f2a12f
commit 35070bad58
4 changed files with 0 additions and 6 deletions

View file

@ -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);
}

View file

@ -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));

View file

@ -18,7 +18,6 @@ export function fetchNewDevice(oldToken: AuthState): Promise<Farmbot> {
return device
.connect()
.then(() => {
console.log(2);
return device;
}, () => bail("NO CONNECT"));
});

View file

@ -17,5 +17,3 @@ detectLanguage().then((config) => {
store.dispatch(ready());
});
});
console.log("Should trigger rebuild.");