Skip to content

Commit 511f44b

Browse files
committed
chore: log vss server url
1 parent acdeabd commit 511f44b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/main/java/to/bitkit/data/backup/VssBackupClient.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,28 @@ class VssBackupClient @Inject constructor(
2929
suspend fun setup() = withContext(bgDispatcher) {
3030
try {
3131
withTimeout(30.seconds) {
32+
val vssServerUrl = Env.vssServerUrl
3233
Logger.verbose("VSS client setting up…", context = TAG)
3334
if (Env.lnurlAuthSeverUrl.isNotEmpty()) {
3435
val mnemonic = keychain.loadString(Keychain.Key.BIP39_MNEMONIC.name)
3536
?: throw ServiceError.MnemonicNotFound
3637
val passphrase = keychain.loadString(Keychain.Key.BIP39_PASSPHRASE.name)
3738

3839
vssNewClientWithLnurlAuth(
39-
baseUrl = Env.vssServerUrl,
40+
baseUrl = vssServerUrl,
4041
storeId = vssStoreIdProvider.getVssStoreId(),
4142
mnemonic = mnemonic,
4243
passphrase = passphrase,
4344
lnurlAuthServerUrl = Env.lnurlAuthSeverUrl,
4445
)
4546
} else {
4647
vssNewClient(
47-
baseUrl = Env.vssServerUrl,
48+
baseUrl = vssServerUrl,
4849
storeId = vssStoreIdProvider.getVssStoreId(),
4950
)
5051
}
5152
isSetup.complete(Unit)
52-
Logger.info("VSS client setup ok", context = TAG)
53+
Logger.info("VSS client setup with server: '$vssServerUrl'", context = TAG)
5354
}
5455
} catch (e: Throwable) {
5556
isSetup.completeExceptionally(e)

0 commit comments

Comments
 (0)