Skip to content

Commit

Permalink
remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
ExampleWasTaken committed Aug 26, 2024
1 parent aa84fa9 commit 7e46e6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/apis/fetchForeignAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export const fetchForeignAPI = async <ReturnType = unknown>(request: RequestInfo
Logger.error("[zod] Data validation failed! Pass the 'debug' flag to 'fetchForeignAPI()' to dump the retrieved data to the console.");
Logger.error(`Endpoint location: ${req.url}.`);
if (debug) {
// winston doesn't log objects in a useful way at the moment
// eslint-disable-next-line no-console
console.log('RETRIEVED DATA:', data);
Logger.debug('RETRIEVED DATA:', data);
}
result.error.issues.forEach((issue) => Logger.error(`[zod] Code: ${issue.code}, Path: ${issue.path.join('.')}, Message: ${issue.message}`));
throw result.error;
Expand Down

0 comments on commit 7e46e6b

Please sign in to comment.