diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8091386..f58d9fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,33 +6,9 @@ on: tags: [ v* ] jobs: - lint: - name: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - version: latest - test: - name: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: '1.19' - - run: go test -v ./... -covermode=atomic -coverprofile=coverage.out - - uses: codecov/codecov-action@v1 - with: - files: coverage.out docker: name: docker runs-on: ubuntu-latest - needs: - - lint - - test steps: - uses: actions/checkout@v2 - uses: docker/setup-qemu-action@v1 diff --git a/internal/webhook-proxy/handler/proxy.go b/internal/webhook-proxy/handler/proxy.go index da9529d..62be307 100644 --- a/internal/webhook-proxy/handler/proxy.go +++ b/internal/webhook-proxy/handler/proxy.go @@ -68,6 +68,11 @@ func (p *Proxy) proxyRequest(body []byte, url string) bool { } responseBody, err := io.ReadAll(resp.Body) + if err != nil { + logrus.Errorf("proxy request to element error: %s", err) + return false + } + logrus.Errorf("proxy request to element error: %s", responseBody) return false }