refactor(api): remove some log statements
This commit is contained in:
parent
1850f5a3f0
commit
bf44122abe
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user