@@ -137,13 +137,13 @@ func NewRouter(ctx context.Context, h Handler, eth2Cl eth2wrap.Client, builderEn
137
137
{
138
138
Name : "propose_block" ,
139
139
Path : "/eth/v2/validator/blocks/{slot}" ,
140
- Handler : respond404 (),
140
+ Handler : respond404 ("/eth/v2/validator/blocks/{slot}" ),
141
141
Methods : []string {http .MethodGet },
142
142
},
143
143
{
144
144
Name : "propose_blinded_block" ,
145
145
Path : "/eth/v1/validator/blinded_blocks/{slot}" ,
146
- Handler : respond404 (),
146
+ Handler : respond404 ("/eth/v1/validator/blinded_blocks/{slot}" ),
147
147
Methods : []string {http .MethodGet },
148
148
},
149
149
{
@@ -629,8 +629,10 @@ func submitContributionAndProofs(s eth2client.SyncCommitteeContributionsSubmitte
629
629
}
630
630
631
631
// respond404 returns a handler function always returning http.StatusNotFound
632
- func respond404 () handlerFunc {
633
- return func (_ context.Context , _ map [string ]string , _ url.Values , _ contentType , _ []byte ) (any , http.Header , error ) {
632
+ func respond404 (endpoint string ) handlerFunc {
633
+ return func (ctx context.Context , _ map [string ]string , _ url.Values , _ contentType , _ []byte ) (any , http.Header , error ) {
634
+ log .Warn (ctx , "This endpoint shall not be hit" , nil , z .Str ("endpoint" , endpoint ))
635
+
634
636
return nil , nil , apiError {
635
637
StatusCode : http .StatusNotFound ,
636
638
Message : "NotFound" ,
0 commit comments