TEMP: log swallowed provisioning exception for diagnosis
This commit is contained in:
1 parent
59fcec2e6d
commit
6e5860a851
2 files changed
+16
-6
No files matched your search
@@ -19,12 +19,11 @@ buildDubPackage rec {
|
|||||||
|
|
||||||
dubLock = ./dub-lock.json;
|
dubLock = ./dub-lock.json;
|
||||||
|
|
||||||
# The reference Dockerfile builds with `dub build -c "static"` (statically
|
# TEMP diagnostic: log the swallowed provisioning exception to find the real
|
||||||
# linked D runtime). The Android-ELF loader does low-level symbol resolution
|
# cause of the silent provisioning failure.
|
||||||
# and memory manipulation that is fragile with a dynamically-linked D runtime
|
postPatch = ''
|
||||||
# (GC/TLS conflicts), which can make the ADI provisioning step fail silently.
|
patch -p1 < ${./log-provisioning-error.patch}
|
||||||
# Match the reference build config.
|
'';
|
||||||
dubBuildFlags = [ "-c" "static" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib openssl_1_1 ];
|
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);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
Reference in new issue
Block a user