From de38023958399eddb24160de9ecef652ed5046bc Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Fri, 5 Apr 2024 10:47:55 -0500 Subject: [PATCH] Fix build workflow --- .github/workflows/build.yml | 4 ++-- umami.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f861ab..0856215 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,6 @@ on: inputs: build_from: type: string - default: =./caddy-umami goos: type: string goarch: @@ -21,6 +20,7 @@ on: type: string env: + BUILD_FROM: ${{ inputs.build_from || '=./caddy-umami' }} CGO_ENABLED: 0 GOOS: ${{ inputs.goos || 'linux' }} GOARCH: ${{ inputs.goarch || 'amd64' }} @@ -52,7 +52,7 @@ jobs: - name: Build Caddy run: | GOOS=$GOOS GOARCH=$GOARCH ./xcaddy build \ - --with github.com/jonaharagon/caddy-umami${{ inputs.build_from }} \ + --with github.com/jonaharagon/caddy-umami${{ env.BUILD_FROM }} \ --with github.com/caddyserver/cache-handler \ --with github.com/digilolnet/caddy-bunny-ip \ --output "caddy-$GOOS-$GOARCH" diff --git a/umami.go b/umami.go index cad3396..52c56f7 100644 --- a/umami.go +++ b/umami.go @@ -158,7 +158,7 @@ func (p Umami) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp. p.logger.Debug("IP", zap.String("IP", req.Header.Get("X-Forwarded-For"))) p.logger.Debug("User-Agent", zap.String("User-Agent", req.UserAgent())) - p.logger.Debug("Body", zap.String("Body", string(body))) + p.logger.Debug("Body", zap.Any("Body", body)) resp, err := client.Do(req) if err != nil {