Skip to content

Commit

Permalink
🧪 Logging library teset
Browse files Browse the repository at this point in the history
  • Loading branch information
펜타곤 authored and 펜타곤 committed Apr 1, 2024
1 parent e56b515 commit 6ce2bd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/reportctrl/send.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package reportctrl

import (
"log"

"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/log"
"github.com/kamva/mgm/v3"
"pentag.kr/dimimonster/middleware"
"pentag.kr/dimimonster/models"
Expand Down Expand Up @@ -37,13 +38,13 @@ func SendReportCtrl(c *fiber.Ctx) error {
body.Reason,
)
if err != nil {
log.Error(err)
log.Println(err)
return c.Status(500).SendString("Internal Server Error")
}

err = mgm.Coll(newReport).Create(newReport)
if err != nil {
log.Error(err)
log.Println(err)
return c.Status(500).SendString("Internal Server Error")
}

Expand Down

0 comments on commit 6ce2bd8

Please sign in to comment.