darwinia-network / shadow

Darwinia ZK proof services
GNU General Public License v3.0
2 stars 1 forks source link

Feature Request: Disable all API request logs optionally #129

Closed wi1dcard closed 2 years ago

wi1dcard commented 3 years ago

As we currently deployed shadow behind the API gateway. All HTTP requests through the gateway to Shadow would be logged with detailed info. Since it's a bit duplicated and quite annoying during debugging, can we have a CLI option (an env var would be ideal too) that disable the request logs like follows:

[2020-12-25T05:36:50Z INFO  actix_web::middleware::logger] 172.69.34.215 "GET /ethereum/parent_mmr_root/10608642 HTTP/1.1" 500 92 "-" "insomnia/2020.5.2" 0.000246

Unless it's an error:

[2020-12-25T05:36:50Z ERROR actix_http::response] Internal Server Error: "Get mmr root of block 10608642\'s parent failed, caused by Inconsistent store"