refactor(api): remove some log statements

This commit is contained in:
parent 1850f5a3f0
commit bf44122abe
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -7,9 +7,9 @@ export default eventHandler(async (event) => {
const wrongMsg = "wrong credentials"; const wrongMsg = "wrong credentials";
let reqbody = await readBody(event); let reqbody = await readBody(event);
let user = await User.findOne({ username: reqbody.username }).exec(); let user = await User.findOne({ username: reqbody.username }).exec();
log.debug(reqbody, { label: "login/body" }); // log.debug(reqbody, { label: "login/body" });
log.debug("USER -> " + user, { label: "login" }); // log.debug("USER -> " + user, { label: "login" });
log.debug("conn ->" + mongoose.connection, { label: "login" }); // log.debug("conn ->" + mongoose.connection, { label: "login" });
let cok = getHeader(event, "Authorization")?.replace("Bearer ", ""); let cok = getHeader(event, "Authorization")?.replace("Bearer ", "");
if (!cok) { if (!cok) {
if (!user) { if (!user) {