Enable JSON RPC request/response logging by default (#6758)

This commit is contained in:
Michael Vines 2019-11-06 08:23:13 -07:00 committed by GitHub
parent 5c1abaf43c
commit b5074d8577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,7 @@ impl RpcRequestMiddleware {
}
fn get(&self, filename: &str) -> RequestMiddlewareAction {
info!("get {}", filename);
let filename = self.ledger_path.join(filename);
RequestMiddlewareAction::Respond {
should_validate_hosts: true,

View File

@ -225,7 +225,13 @@ fn is_keypair(string: String) -> Result<(), String> {
}
pub fn main() {
solana_logger::setup_with_filter("solana=info");
solana_logger::setup_with_filter(
&[
"solana=info", /* info logging for all solana modules */
"rpc=trace", /* json_rpc request/response logging */
]
.join(","),
);
solana_metrics::set_panic_hook("validator");
let default_dynamic_port_range =