TEMP: log swallowed provisioning exception for diagnosis

This commit is contained in:
Hermes
2026-08-08 11:52:47 +00:00
parent 59fcec2e6d
commit 6e5860a851
2 changed files with 16 additions and 6 deletions
+5 -6
View File
@@ -19,12 +19,11 @@ buildDubPackage rec {
dubLock = ./dub-lock.json;
# The reference Dockerfile builds with `dub build -c "static"` (statically
# linked D runtime). The Android-ELF loader does low-level symbol resolution
# and memory manipulation that is fragile with a dynamically-linked D runtime
# (GC/TLS conflicts), which can make the ADI provisioning step fail silently.
# Match the reference build config.
dubBuildFlags = [ "-c" "static" ];
# TEMP diagnostic: log the swallowed provisioning exception to find the real
# cause of the silent provisioning failure.
postPatch = ''
patch -p1 < ${./log-provisioning-error.patch}
'';
buildInputs = [ zlib openssl_1_1 ];
@@ -0,0 +1,11 @@
--- a/source/app.d
+++ b/source/app.d
@@ -156,7 +156,9 @@
ProvisioningSession provisioningSession = new ProvisioningSession(v1Adi, v1Device);
provisioningSession.provision(dsId);
log.info("Provisioning done!");
- } catch (Exception) {}
+ } catch (Exception e) {
+ log.error("Provisioning failed: %s", e.msg);
+ }
}