Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion events-monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Accept the Go version for the image to be set as a build argument.
ARG GO_VERSION=1.18
ARG GO_VERSION=1.19

# First stage: build the executable.
FROM golang:${GO_VERSION}-alpine AS builder
Expand Down
6 changes: 3 additions & 3 deletions events-monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ func monitorEvents(ctx context.Context, sender emailSender) error {
forkchoiceDump, err := getForkchoiceDump(monitorFlags.httpEndpoint)
if err != nil {
log.WithError(err).Error("Could not get forkchoice dump data")
continue
forkchoiceDump = []byte("Could not get forkchoice dump data") // Send something to avoid empty email.
}
evData, err := json.Marshal(ev)
if err != nil {
log.WithError(err).Error("Could marshal event")
continue
log.WithError(err).Error("Could not marshal event")
evData = []byte("Could not marshal event") // Send error as data.
}
if err := sendJSONEmail(sender, "chain_reorg", evData, forkchoiceDump); err != nil {
log.WithError(err).Error("Could not send chain_reorg event as email attachment")
Expand Down