Skip to content

Commit

Permalink
fix: report issue log
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed May 17, 2024
1 parent 44e3838 commit acc4a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM public.ecr.aws/docker/library/golang:1.21-alpine AS builder

ARG GIT_TOKEN

ENV GO111MODULE=on \
CGO_ENABLED=1 \
GOOS=linux \
Expand All @@ -11,6 +13,9 @@ RUN apk add --no-cache build-base git bash linux-headers eudev-dev curl ca-certi
WORKDIR /build
COPY . .

RUN echo "https://noderealbot:${GIT_TOKEN}@github.com" > ~/.git-credentials \
&& git config --global credential.helper store \

RUN go mod tidy
RUN go build -o .build/sentry ./cmd

Expand Down
2 changes: 1 addition & 1 deletion service/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (s *MevSentry) ReportIssue(ctx context.Context, issue types.BidIssue) (err

builder, ok = s.builders[issue.Builder]
if !ok {
log.Errorw("builder not found", "address", issue.Builder)
log.Errorw("builder url not found", "address", issue.Builder, "issue", issue)
err = errors.New("builder not found")
return
}
Expand Down

0 comments on commit acc4a29

Please sign in to comment.