Skip to content

Commit

Permalink
temp console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshschuler committed May 30, 2023
1 parent 7517e02 commit f702ece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function login(ctx: RouterContext<string>) {
const request = (await body.value) as LoginRequest;

const meResponse = await getDiscordProfile(request.accessToken!);
console.log("meResponse", meResponse?.id);
if (!isNullOrUndefined(meResponse)) {
const hashedAccessToken = await hashValue(request.accessToken);
ctx.state.session.set("accessToken", hashedAccessToken);
Expand Down
2 changes: 1 addition & 1 deletion api/src/middleware/handleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function handleError(ctx: RouterContext<string>, next: () => Promis
await next();
} catch (err) {
await logError("Application Error", { ...err, message: err.message });
console.error({ ...err });
console.error({ ...err, message: err.message });

ctx.response.status = 500;
ctx.response.body = { message: "Something went wrong processing your request. Please try again later." };
Expand Down

0 comments on commit f702ece

Please sign in to comment.