Enable JSON RPC request/response logging by default (#6758)
This commit is contained in:
parent
5c1abaf43c
commit
b5074d8577
|
@ -53,6 +53,7 @@ impl RpcRequestMiddleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get(&self, filename: &str) -> RequestMiddlewareAction {
|
fn get(&self, filename: &str) -> RequestMiddlewareAction {
|
||||||
|
info!("get {}", filename);
|
||||||
let filename = self.ledger_path.join(filename);
|
let filename = self.ledger_path.join(filename);
|
||||||
RequestMiddlewareAction::Respond {
|
RequestMiddlewareAction::Respond {
|
||||||
should_validate_hosts: true,
|
should_validate_hosts: true,
|
||||||
|
|
|
@ -225,7 +225,13 @@ fn is_keypair(string: String) -> Result<(), String> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() {
|
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");
|
solana_metrics::set_panic_hook("validator");
|
||||||
|
|
||||||
let default_dynamic_port_range =
|
let default_dynamic_port_range =
|
||||||
|
|
Loading…
Reference in New Issue