Skip to content

Commit

Permalink
Add the Logger middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Jul 18, 2024
1 parent 4c5d0b9 commit 12bc678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"k8s.io/client-go/kubernetes"

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)

// ExposerApp encapsulates the overall application-logic, tying together the
Expand Down Expand Up @@ -148,6 +149,7 @@ func NewExposerApp(init *ExposerAppInit, apps *apps.Apps, c *koanf.Koanf) *Expos
}

app.router.Use(otelecho.Middleware("app-exposer"))
app.router.Use(middleware.Logger())

ilInit := &instantlaunches.Init{
UserSuffix: init.UserSuffix,
Expand Down

0 comments on commit 12bc678

Please sign in to comment.