Comment out logging statements in application

This commit is contained in:
jfrye122
2023-06-07 14:00:10 -04:00
parent ae8a0fb943
commit 851d8bebe4
4 changed files with 28 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ export function JobIdSearchSelect(
// }} // }}
onChangeText={(search) => { onChangeText={(search) => {
if (search && search !== "") { if (search && search !== "") {
console.log("onChangeTextFired!!!!"); // console.log("onChangeTextFired!!!!");
handleSearch(search); handleSearch(search);
} }
}} }}

View File

@@ -57,7 +57,7 @@ export function* onEmployeeSignInSuccessSaga() {
export function* updateEmployeeWithEmployeeId({ payload }) { export function* updateEmployeeWithEmployeeId({ payload }) {
try { try {
const employeeId = payload.id; const employeeId = payload.id;
console.log("updateEmployeeWithEmployeeId",employeeId); // console.log("updateEmployeeWithEmployeeId",employeeId);
// logImEXEvent("redux_update_employee_with_employee_id_attempt", employeeId); // logImEXEvent("redux_update_employee_with_employee_id_attempt", employeeId);
const result = yield client.query({ query: QUERY_EMPLOYEE_BY_ID, const result = yield client.query({ query: QUERY_EMPLOYEE_BY_ID,
variables: { variables: {
@@ -73,8 +73,8 @@ export function* updateEmployeeWithEmployeeId({ payload }) {
} }
} catch (error) { } catch (error) {
yield put(employeeGetRatesFailure(error)); yield put(employeeGetRatesFailure(error));
console.log("Error while getting employee rates.", error); // console.log("Error while getting employee rates.", error);
//Sentry.Native.captureException(error); Sentry.Native.captureException(error);
} }
} }
@@ -104,8 +104,8 @@ export function* getRatesWithEmployeeId({ payload: employeeId }) {
} }
} catch (error) { } catch (error) {
yield put(employeeGetRatesFailure(error)); yield put(employeeGetRatesFailure(error));
console.log("Error while getting employee rates.", error); // console.log("Error while getting employee rates.", error);
//Sentry.Native.captureException(error); Sentry.Native.captureException(error);
} }
} }

View File

@@ -4,7 +4,7 @@ import {
timeTicketClockInSuccess, timeTicketClockInSuccess,
timeTicketClockInFailure, timeTicketClockInFailure,
timeTicketClockOutSuccess, timeTicketClockOutSuccess,
timeTicketClockOutFailure timeTicketClockOutFailure,
} from "./timetickets.actions"; } from "./timetickets.actions";
import TimeTicketsActionTypes from "./timetickets.types"; import TimeTicketsActionTypes from "./timetickets.types";
import { client } from "../../graphql/client"; import { client } from "../../graphql/client";
@@ -14,7 +14,6 @@ import { logImEXEvent } from "../../firebase/firebase.analytics";
import { selectCurrentTimeTicket } from "./timetickets.selectors"; import { selectCurrentTimeTicket } from "./timetickets.selectors";
import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries"; import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries";
export function* onCreateTimeTicketStart() { export function* onCreateTimeTicketStart() {
yield takeLatest( yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CREATE_START, TimeTicketsActionTypes.TIME_TICKET_CREATE_START,
@@ -24,7 +23,7 @@ export function* onCreateTimeTicketStart() {
export function* insertNewTimeTicket({ payload: { timeTicketInput } }) { export function* insertNewTimeTicket({ payload: { timeTicketInput } }) {
try { try {
logImEXEvent("redux_insertnewtimeticket_attempt"); logImEXEvent("redux_insertnewtimeticket_attempt");
console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput); // console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput);
//console.loging //console.loging
// console.log("Saga", employeeId, pin, pin); // console.log("Saga", employeeId, pin, pin);
const timeTicket = yield select(selectCurrentTimeTicket); const timeTicket = yield select(selectCurrentTimeTicket);
@@ -73,13 +72,18 @@ export function* insertNewTimeTicket({ payload: { timeTicketInput } }) {
} }
export function* onClockOutStart() { export function* onClockOutStart() {
yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START,clockOutStart); yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START,
clockOutStart
);
} }
export function* clockOutStart({ payload: { timeTicketInput } }) { export function* clockOutStart({ payload: { timeTicketInput } }) {
try { try {
logImEXEvent("redux_clockOutStart_attempt"); logImEXEvent("redux_clockOutStart_attempt");
//console.loging //console.loging
console.log("Saga, clockOutStart :", timeTicketInput);
// console.log("Saga, clockOutStart :", timeTicketInput);
// const timeTicket = yield select(selectCurrentTimeTicket); // const timeTicket = yield select(selectCurrentTimeTicket);
// const response = yield call(axios.post, "/tech/login", { // const response = yield call(axios.post, "/tech/login", {
// shopid: bodyshop.id, // shopid: bodyshop.id,
@@ -125,16 +129,24 @@ export function* clockOutStart({ payload: { timeTicketInput } }) {
} }
} }
export function* onClockInStart() { export function* onClockInStart() {
yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START,clockInStart); yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START,
clockInStart
);
} }
export function* clockInStart({ payload: { timeTicketInput } }) { export function* clockInStart({ payload: { timeTicketInput } }) {
try { try {
logImEXEvent("redux_clockInStart_attempt"); logImEXEvent("redux_clockInStart_attempt");
console.log("Saga, clockInStart :", timeTicketInput);
// console.log("Saga, clockInStart :", timeTicketInput);
} catch (error) { } catch (error) {
yield put(timeTicketClockInFailure(error)); yield put(timeTicketClockInFailure(error));
} }
} }
export function* timeTicketsSagas() { export function* timeTicketsSagas() {
yield all([call(onCreateTimeTicketStart),call(onClockOutStart),call(onClockInStart)]); yield all([
call(onCreateTimeTicketStart),
call(onClockOutStart),
call(onClockInStart),
]);
} }

View File

@@ -36,10 +36,10 @@ export const selectRestrictClaimableHoursFlag = createSelector(
[selectUser], [selectUser],
(user) => { (user) => {
if (!user.bodyshop || !user.bodyshop.tt_enforce_hours_for_tech_console) { if (!user.bodyshop || !user.bodyshop.tt_enforce_hours_for_tech_console) {
console.info("selectRestrictClaimableHoursFlag returning null"); // console.info("selectRestrictClaimableHoursFlag returning null");
return null; return null;
} }
console.info("selectRestrictClaimableHoursFlag returning :", user.bodyshop.tt_enforce_hours_for_tech_console); // console.info("selectRestrictClaimableHoursFlag returning :", user.bodyshop.tt_enforce_hours_for_tech_console);
return user.bodyshop.tt_enforce_hours_for_tech_console; return user.bodyshop.tt_enforce_hours_for_tech_console;
} }
); );