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:
2026-07-13 04:49:02 -07:00
parent ccf56c0599
commit ff19c7c4ae
@@ -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))
}