Skip to content

Double logging of errors does not give us more information #11054

@filev94

Description

@filev94

Problem

In the grafana logs when we encounter an error we log it twice and this does not give us any more details.

Once in the GenericControllerAdvice, and through the LoggingFilter

2025-04-28T15:29:01.183Z WARN tomcat-handler-761989 c.h.m.w.c.GenericControllerAdvice Mirror EVM transaction error: CONTRACT_REVERT_EXECUTED, detail: , data: 0x24a01144, isModularized: true |  

2025-04-28T15:29:01.184Z INFO tomcat-handler-761989 c.h.m.w.c.LoggingFilter 54.210.178.49 POST /api/v1/contracts/call in 15 ms: 400 CONTRACT_REVERT_EXECUTED - {"data":"0xb3596f0700000000000000000000000000000000000000000000000000000000003991ed","estimate":false,"to":"0x08460a5eb624cc5e112802B3d5f7f96ef59c68e1"}

Solution

Either we need to enrich the logs so that they can be useful or remove one of them.

Alternatives

No response

Metadata

Metadata

Labels

enhancementType: New featureweb3Area: Web3 API

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions