From bf44122abea42ee3c0e2285510ad73262dc86cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 16 Mar 2024 21:16:43 -0400 Subject: [PATCH] refactor(api): remove some log statements --- server/api/auth/login.post.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/api/auth/login.post.ts b/server/api/auth/login.post.ts index e258fc3..e1d41a8 100644 --- a/server/api/auth/login.post.ts +++ b/server/api/auth/login.post.ts @@ -7,9 +7,9 @@ export default eventHandler(async (event) => { const wrongMsg = "wrong credentials"; let reqbody = await readBody(event); let user = await User.findOne({ username: reqbody.username }).exec(); - log.debug(reqbody, { label: "login/body" }); - log.debug("USER -> " + user, { label: "login" }); - log.debug("conn ->" + mongoose.connection, { label: "login" }); + // log.debug(reqbody, { label: "login/body" }); + // log.debug("USER -> " + user, { label: "login" }); + // log.debug("conn ->" + mongoose.connection, { label: "login" }); let cok = getHeader(event, "Authorization")?.replace("Bearer ", ""); if (!cok) { if (!user) {