mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-10-20 18:56:25 +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:
1 parent
ccf56c0599
commit
ff19c7c4ae
1 file changed
+4
+4
@@ -178,9 +178,13 @@ class AddressInputMixinProvider(
|
|||||||
systemCallExecutor.executeSystemCall(ScanQrCodeCall()).mapCatching {
|
systemCallExecutor.executeSystemCall(ScanQrCodeCall()).mapCatching {
|
||||||
val spec = specProvider.spec.first()
|
val spec = specProvider.spec.first()
|
||||||
|
|
||||||
|
android.util.Log.e("QrDiag", "raw QR content: $it")
|
||||||
|
|
||||||
qrSharingFactory.create(spec::isValidAddress).decode(it).address
|
qrSharingFactory.create(spec::isValidAddress).decode(it).address
|
||||||
}.onSuccess { address ->
|
}.onSuccess { address ->
|
||||||
inputFlow.value = address
|
inputFlow.value = address
|
||||||
|
}.onFailure {
|
||||||
|
android.util.Log.e("QrDiag", "decode failed", it)
|
||||||
}.onSystemCallFailure {
|
}.onSystemCallFailure {
|
||||||
errorDisplayer(resourceManager.getString(R.string.invoice_scan_error_no_info))
|
errorDisplayer(resourceManager.getString(R.string.invoice_scan_error_no_info))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user