Closed rekmarks closed 4 months ago
The stretch-goal version of this would be to make logging configurable via some method on the provider object (constructor arguments don't help most of our consumers), but that's definitely a stretch goal.
@rekmarks Going ahead and merging this to get it into next release FYI
The error middleware injected in the provider-side
json-rpc-engine
was callinglog.error()
(in practice,log
=console
) every time it observed a JSON-RPC error response.We received reports that this error log is caught by the monitoring infra of some dapps. It is ultimately the caller's responsibility to handle errors where they call
ethereum.request()
, and they can alwaysconsole.error()
at that point themselves. In light of the above, we decrease the severity of our own log statement towarn
.