Apply suggestions from code review

Co-authored-by: Daniel Karzel <daniel.karzel@coblox.tech>
This commit is contained in:
Philipp Hoenisch 2021-05-11 16:06:44 +10:00 committed by GitHub
parent fc0cceb180
commit 26e0383e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ pub fn read_config(config_path: PathBuf) -> Result<Result<Config, ConfigNotIniti
if config_path.exists() { if config_path.exists() {
info!( info!(
path = %config_path.display(), path = %config_path.display(),
"Using config file at path", "Using config file at",
); );
} else { } else {
return Ok(Err(ConfigNotInitialized {})); return Ok(Err(ConfigNotInitialized {}));

View File

@ -91,7 +91,7 @@ async fn main() -> Result<()> {
let monero_address = monero_wallet.get_main_address(); let monero_address = monero_wallet.get_main_address();
warn!( warn!(
%monero_address, %monero_address,
"The Monero balance is 0, make sure to deposit funds", "The Monero balance is 0, make sure to deposit funds at",
) )
} else { } else {
info!(%monero_balance, "Initialized Monero wallet"); info!(%monero_balance, "Initialized Monero wallet");

View File

@ -161,7 +161,7 @@ impl Wallet {
}; };
if Some(new_status) != last_status { if Some(new_status) != last_status {
tracing::debug!(%txid, status = %new_status, "Transaction status"); tracing::debug!(%txid, status = %new_status, "Transaction");
} }
last_status = Some(new_status); last_status = Some(new_status);

View File

@ -122,8 +122,8 @@ impl WalletRpc {
.port(); .port();
tracing::debug!( tracing::debug!(
monero_wallet_rpc_port = %port, %port,
"Starting monero-wallet-rpc on port" "Starting monero-wallet-rpc on"
); );
let mut child = Command::new(self.exec_path()) let mut child = Command::new(self.exec_path())