This commit is contained in:
parent
590b48f925
commit
5247077479
@ -118,7 +118,7 @@ func New(cfg *config.Config) *Server {
|
|||||||
// 注册中间件
|
// 注册中间件
|
||||||
app.Use(recover.New())
|
app.Use(recover.New())
|
||||||
app.Use(logger.New(logger.Config{
|
app.Use(logger.New(logger.Config{
|
||||||
Format: "[${time}] ${status} - ${latency} ${method} ${path}\n",
|
Format: "[${time}] ${status} - ${ip} - ${latency} ${method} ${path}\n",
|
||||||
TimeFormat: "2006-01-02 15:04:05",
|
TimeFormat: "2006-01-02 15:04:05",
|
||||||
}))
|
}))
|
||||||
app.Use(cors.New())
|
app.Use(cors.New())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user