Added logging for Fiber

This commit is contained in:
Ben Wilson 2020-03-23 13:49:17 -04:00
parent 47ca0fb53d
commit fd3564aa57
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"os"
"github.com/gofiber/fiber"
flog "github.com/gofiber/logger"
"github.com/slack-go/slack"
"go.uber.org/zap"
)
@ -29,6 +30,7 @@ func main() {
defer logger.Sync()
log := logger.Sugar()
app := fiber.New()
app.Use(flog.New())
slackURL = os.Getenv("slackURL")
if slackURL == "" {