Skip to content

Commit

Permalink
less logging when using gin (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
bivas authored Dec 23, 2017
1 parent d62302f commit 1ff79a0
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 12 deletions.
4 changes: 3 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ func (server *BotServer) initDefaults() {
server.Uri = "/" + server.Uri
}
gin.SetMode(gin.ReleaseMode)
server.engine = gin.Default()
server.engine = gin.New()
server.engine.Use(gin.Recovery())
server.engine.Use(gin.ErrorLogger())
}

func (server *BotServer) registerMetrics() {
Expand Down
60 changes: 49 additions & 11 deletions vendor/github.com/waigani/diffparser/example.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ff79a0

Please sign in to comment.