removed more logs from the browser
This commit was merged in pull request #849.
This commit is contained in:
@@ -3,7 +3,7 @@ import { apiConst } from "../lib/apiConst";
|
||||
|
||||
class usersService {
|
||||
constructor() {
|
||||
console.log("WRB Service Entry");
|
||||
// console.log("WRB Service Entry");
|
||||
}
|
||||
|
||||
MyPageIntro(reqData) {
|
||||
@@ -1644,19 +1644,22 @@ class usersService {
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
console.log("~~~~~~~ Toks2 GET ~~~~~~~~");
|
||||
// console.log("~~~~~~~ Toks2 GET ~~~~~~~~");
|
||||
return response;
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.response) {
|
||||
//response status is an error code
|
||||
console.log(error.response.status);
|
||||
// console.log(error.response.status);
|
||||
return
|
||||
} else if (error.request) {
|
||||
//response not received though the request was sent
|
||||
console.log(error.request);
|
||||
// console.log(error.request);
|
||||
return
|
||||
} else {
|
||||
//an error occurred when setting up the request
|
||||
console.log(error.message);
|
||||
// console.log(error.message);
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1686,7 +1689,7 @@ class usersService {
|
||||
return Axios.post(endPoint, reqData)
|
||||
.then((response) => {
|
||||
// console.log(response);
|
||||
console.log("~~~~~~~ WrenchBoard::POST ~~~~~~~~");
|
||||
// console.log("~~~~~~~ WrenchBoard::POST ~~~~~~~~");
|
||||
if (response.data.internal_return == "-9999") {
|
||||
localStorage.clear();
|
||||
window.location.href = `/login?sessionExpired=true`;
|
||||
@@ -1696,31 +1699,34 @@ class usersService {
|
||||
.catch((error) => {
|
||||
if (error.response) {
|
||||
//response status is an error code
|
||||
console.log(
|
||||
"ERROR-------------------------------------------------------"
|
||||
);
|
||||
console.log(error.response.status);
|
||||
console.log(
|
||||
"ERROR-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error.response.status);
|
||||
// console.log(
|
||||
// "ERROR-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
} else if (error.request) {
|
||||
//response not received though the request was sent
|
||||
console.log(
|
||||
"ERROR2-------------------------------------------------------"
|
||||
);
|
||||
console.log(error?.request);
|
||||
console.log(
|
||||
"ERROR2-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR2-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error?.request);
|
||||
// console.log(
|
||||
// "ERROR2-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
} else {
|
||||
//an error occurred when setting up the request
|
||||
console.log(
|
||||
"ERROR3-------------------------------------------------------"
|
||||
);
|
||||
console.log(error);
|
||||
console.log(
|
||||
"ERROR3-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR3-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error);
|
||||
// console.log(
|
||||
// "ERROR3-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1753,7 +1759,7 @@ class usersService {
|
||||
.then((response) => {
|
||||
// console.log(response);
|
||||
// res = response;
|
||||
console.log("~~~~~~~ Toks2 POST ~~~~~~~~");
|
||||
// console.log("~~~~~~~ Toks2 POST ~~~~~~~~");
|
||||
if (response.data.internal_return == "-9999") {
|
||||
localStorage.clear();
|
||||
window.location.href = `/login?sessionExpired=true`;
|
||||
@@ -1763,31 +1769,34 @@ class usersService {
|
||||
.catch((error) => {
|
||||
if (error.response) {
|
||||
//response status is an error code
|
||||
console.log(
|
||||
"ERROR-------------------------------------------------------"
|
||||
);
|
||||
console.log(error.response.status);
|
||||
console.log(
|
||||
"ERROR-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error.response.status);
|
||||
// console.log(
|
||||
// "ERROR-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
} else if (error.request) {
|
||||
//response not received though the request was sent
|
||||
console.log(
|
||||
"ERROR2-------------------------------------------------------"
|
||||
);
|
||||
console.log(error?.request);
|
||||
console.log(
|
||||
"ERROR2-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR2-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error?.request);
|
||||
// console.log(
|
||||
// "ERROR2-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
} else {
|
||||
//an error occurred when setting up the request
|
||||
console.log(
|
||||
"ERROR3-------------------------------------------------------"
|
||||
);
|
||||
console.log(error);
|
||||
console.log(
|
||||
"ERROR3-------------------------------------------------------"
|
||||
);
|
||||
// console.log(
|
||||
// "ERROR3-------------------------------------------------------"
|
||||
// );
|
||||
// console.log(error);
|
||||
// console.log(
|
||||
// "ERROR3-------------------------------------------------------"
|
||||
// );
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user