Skip to content

Commit

Permalink
add gin log to log file
Browse files Browse the repository at this point in the history
  • Loading branch information
sheyanjie-qq committed Jul 15, 2024
1 parent 4bc9d8b commit 2a464cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func Init() *http.Server {
}

router := web.CreateRouter(conf.Debug, &conf.Cors, false)
router.Use(log.GinLog())

Check failure on line 37 in system/program.go

View workflow job for this annotation

GitHub Actions / Go 1.18

undefined: log.GinLog
router.Use(log.GinRecoverLog())

Check failure on line 38 in system/program.go

View workflow job for this annotation

GitHub Actions / Go 1.18

undefined: log.GinRecoverLog

reporter := api.NewReporter(conf)
reporter.Init(router)
Expand Down

0 comments on commit 2a464cc

Please sign in to comment.