diff --git a/cmd/sequencer/main.go b/cmd/sequencer/main.go index c2ba196..fcbddbd 100644 --- a/cmd/sequencer/main.go +++ b/cmd/sequencer/main.go @@ -124,6 +124,18 @@ func RunDebugServer(ctx context.Context) { c.Status(http.StatusNotFound) }, ) + eng.Handle( + http.MethodGet, "/version", + func(c *gin.Context) { + c.JSON(http.StatusOK, map[string]string{ + "service_name": Name, + "feature": Feature, + "version": Version, + "commit_id": CommitID, + "build_at": Date, + }) + }, + ) eng.Run(":80") } diff --git a/pkg/modules/event/global.go b/pkg/modules/event/global.go index c580408..2821131 100644 --- a/pkg/modules/event/global.go +++ b/pkg/modules/event/global.go @@ -96,6 +96,9 @@ func Handle(ctx context.Context, subtopic, topic string, data any) (err error) { if t, ok := data.(TxEventUnmarshaler); ok { ll = ll.WithValues("block", t.BlockNumber()) } + if t, ok := data.(WithIMEI); ok { + ll = ll.WithValues("imei", t.GetIMEI()) + } if err != nil { ll.Error(err, "failed to handle event") } else {