From cb910f41bd6a29671b2459847aa9dfae46f6eab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 21 Sep 2023 15:17:35 +0100 Subject: [PATCH] printing initialised gateway-NR's config path to stderr --- gateway/src/commands/helpers.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gateway/src/commands/helpers.rs b/gateway/src/commands/helpers.rs index 1a83b76317..649cbce47b 100644 --- a/gateway/src/commands/helpers.rs +++ b/gateway/src/commands/helpers.rs @@ -21,6 +21,7 @@ use nym_types::gateway::GatewayNetworkRequesterDetails; use nym_validator_client::nyxd::AccountId; use std::net::IpAddr; use std::path::PathBuf; +use thiserror::__private::PathAsDisplay; // Configuration that can be overridden. #[derive(Default)] @@ -253,7 +254,12 @@ pub(crate) async fn initialise_local_network_requester( path: nr_cfg_path.to_path_buf(), source: err, }); - }; + } else { + eprintln!( + "Saved network requester configuration file to {}", + nr_cfg_path.as_display() + ) + } Ok(GatewayNetworkRequesterDetails { enabled: gateway_config.network_requester.enabled,