Skip to content

Commit

Permalink
return error for echo and fiber framework
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctd-urbox committed Mar 17, 2022
1 parent acfadb0 commit 7e79bdf
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 94 deletions.
2 changes: 1 addition & 1 deletion echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ func EchoMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
} else {
logger.Info(msg)
}
return nil
return err
}
}
2 changes: 1 addition & 1 deletion fiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ func FiberMiddleware() fiber.Handler {
} else {
logger.Info(msg)
}
return nil
return err
}
}
33 changes: 11 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,21 @@ module github.com/trinhdaiphuc/logger
go 1.16

require (
github.com/andybalholm/brotli v1.0.3 // indirect
github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect
github.com/gin-gonic/gin v1.7.4
github.com/go-playground/validator/v10 v10.9.0 // indirect
github.com/gofiber/fiber/v2 v2.20.2
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
github.com/jonboulle/clockwork v0.2.2 // indirect
github.com/gin-gonic/gin v1.7.7
github.com/go-playground/validator/v10 v10.10.1 // indirect
github.com/gofiber/fiber/v2 v2.29.0
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/labstack/echo/v4 v4.6.1
github.com/lestrrat/go-envload v0.0.0-20180220120943-6ed08b54a570 // indirect
github.com/lestrrat/go-file-rotatelogs v0.0.0-20180223000712-d3151e2a480f
github.com/lestrrat/go-strftime v0.0.0-20180220042222-ba3bf9c1d042 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/klauspost/compress v1.15.1 // indirect
github.com/labstack/echo/v4 v4.7.2
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
github.com/tebeka/strftime v0.1.5 // indirect
github.com/ugorji/go v1.2.6 // indirect
github.com/valyala/fasthttp v1.31.0 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
golang.org/x/sys v0.0.0-20211015200801-69063c4bb744 // indirect
google.golang.org/genproto v0.0.0-20211016002631-37fc39342514 // indirect
google.golang.org/grpc v1.41.0
github.com/ugorji/go v1.2.7 // indirect
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
golang.org/x/sys v0.0.0-20220317061510-51cd9980dadf // indirect
google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e // indirect
google.golang.org/grpc v1.45.0
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit 7e79bdf

Please sign in to comment.