diff --git a/cln-rpc/examples/getinfo.rs b/cln-rpc/examples/getinfo.rs index 5cbebdfaf1a4..9e61e22b4315 100644 --- a/cln-rpc/examples/getinfo.rs +++ b/cln-rpc/examples/getinfo.rs @@ -6,7 +6,9 @@ use tokio; #[tokio::main] async fn main() -> Result<(), anyhow::Error> { + // initialize the log inside the library env_logger::init(); + let rpc_path = args().nth(1).context("missing argument: socket path")?; let p = Path::new(&rpc_path);