add wallet name in logs
MODIFY
WalletWasabi.Tests/RegressionTests/SendTests.cs
WalletWasabi.Tests/RegressionTests/SendTests.cs
@@ -99,7 +99,7 @@ public class SendTests
waitCount++;
if (waitCount >= 21)
{
- Logger.LogInfo("Funding transaction to the wallet did not arrive.");
+ Logger.LogInfo($"Funding transaction to the wallet '{wallet.WalletName}' did not arrive.");
return; // Very rarely this test fails. I have no clue why. Probably because all these RegTests are interconnected, anyway let's not bother the CI with it.
}
}

MODIFY
WalletWasabi/Wallets/Wallet.cs
WalletWasabi/Wallets/Wallet.cs
@@ -400,7 +400,7 @@ public class Wallet : BackgroundService
if (mempoolHashes.Contains(hash.ToString()[..compactness]))
{
txsToProcess.Add(tx);
- Logger.LogInfo($"Transaction was successfully tested against the backend's mempool hashes: {hash}.");
+ Logger.LogInfo($"'{WalletName}': Transaction was successfully tested against the backend's mempool hashes: {hash}.");
}
else
{

MODIFY
WalletWasabi/Wallets/WalletManager.cs
WalletWasabi/Wallets/WalletManager.cs
@@ -161,9 +161,9 @@ public class WalletManager
try
{
var cancel = CancelAllInitialization.Token;
- Logger.LogInfo($"Starting {nameof(Wallet)}...");
+ Logger.LogInfo($"Starting wallet '{wallet.WalletName}'...");
await wallet.StartAsync(cancel).ConfigureAwait(false);
- Logger.LogInfo($"{nameof(Wallet)} started.");
+ Logger.LogInfo($"Wallet '{wallet.WalletName}' started.");
cancel.ThrowIfCancellationRequested();
return wallet;
@@ -318,7 +318,7 @@ public class WalletManager
keyManager.ToFile(backupWalletFilePath);
Logger.LogInfo($"{nameof(wallet.KeyManager)} backup saved to `{backupWalletFilePath}`.");
await wallet.StopAsync(cancel).ConfigureAwait(false);
- Logger.LogInfo($"{nameof(Wallet)} is stopped.");
+ Logger.LogInfo($"'{wallet.WalletName}' wallet is stopped.");
}
wallet?.Dispose();
}

add wallet name in logs