Skip to content

Commit

Permalink
fix: not print request log
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jul 2, 2024
1 parent fa997e1 commit 8362eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

func Run(addr string, port int) error {
server := fiber.New()
route(server)

// set fiber web server access log
server.Use(logger.New())
Expand All @@ -23,6 +22,7 @@ func Run(addr string, port int) error {
log.Infof("Web access log file path: %s", app.Config.Log.AccessLog)
}

route(server)
if err := server.Listen(fmt.Sprintf("%s:%d", addr, port)); err != nil {
log.Error(err.Error())
return err
Expand Down

0 comments on commit 8362eb6

Please sign in to comment.