mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 17:15:48 +00:00
debug: temporarily log raw QR content and decode failures
Neither the raw scanned QR string nor the InvalidFormatException from a failed decode was ever logged - the failure path only shows a generic toast, making it impossible to diagnose from logcat alone. Temporary, will revert once the actual failure is identified.
This commit is contained in:
+4
@@ -178,9 +178,13 @@ class AddressInputMixinProvider(
|
||||
systemCallExecutor.executeSystemCall(ScanQrCodeCall()).mapCatching {
|
||||
val spec = specProvider.spec.first()
|
||||
|
||||
android.util.Log.e("QrDiag", "raw QR content: $it")
|
||||
|
||||
qrSharingFactory.create(spec::isValidAddress).decode(it).address
|
||||
}.onSuccess { address ->
|
||||
inputFlow.value = address
|
||||
}.onFailure {
|
||||
android.util.Log.e("QrDiag", "decode failed", it)
|
||||
}.onSystemCallFailure {
|
||||
errorDisplayer(resourceManager.getString(R.string.invoice_scan_error_no_info))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user