error handling logging and debug to server console
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import axios from "axios";
|
||||
import { hashAPIPath } from "./";
|
||||
import { hashAPIPath, consoleLogger } from "./";
|
||||
|
||||
const configEndpoint = process.env.GG_PROVIDER_CONFIG_ENDPOINT;
|
||||
const ggClientID = process.env.GG_CLIENT_ID;
|
||||
@@ -87,7 +87,9 @@ export const getPortalLogin = (emailAddress, token) => {
|
||||
.get(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl), azureHeaders(token))
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("thiserror", error);
|
||||
console.log(consoleLogger(error));
|
||||
//console.log("thiserror", error);
|
||||
return JSON.stringify(error);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user