Remove debug loggers
This commit is contained in:
parent
fbf8f2a12f
commit
35070bad58
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -18,7 +18,6 @@ export function fetchNewDevice(oldToken: AuthState): Promise<Farmbot> {
|
|||
return device
|
||||
.connect()
|
||||
.then(() => {
|
||||
console.log(2);
|
||||
return device;
|
||||
}, () => bail("NO CONNECT"));
|
||||
});
|
||||
|
|
|
@ -17,5 +17,3 @@ detectLanguage().then((config) => {
|
|||
store.dispatch(ready());
|
||||
});
|
||||
});
|
||||
|
||||
console.log("Should trigger rebuild.");
|
||||
|
|
Loading…
Reference in a new issue