Skip to content

Commit

Permalink
#20 Replace middleware RequestID with goutils ContextBase
Browse files Browse the repository at this point in the history
  • Loading branch information
elvinchan authored and Jaehue Jang committed Feb 19, 2019
1 parent f2a3396 commit 28d13de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ func main() {

e.Static("/static", "static")
e.Pre(middleware.RemoveTrailingSlash())
e.Pre(echomiddleware.ContextBase())
e.Use(middleware.Recover())
e.Use(middleware.CORS())
// e.Use(middleware.Logger())
e.Use(middleware.RequestID())
e.Use(echomiddleware.ContextLogger())
e.Use(echomiddleware.ContextDB(c.Service, db, echomiddleware.KafkaConfig(c.Database.Logger.Kafka)))
e.Use(echomiddleware.BehaviorLogger(c.Service, echomiddleware.KafkaConfig(c.BehaviorLog.Kafka)))
Expand Down

0 comments on commit 28d13de

Please sign in to comment.