From 114e4d797a852bb3a8916e531ffc1fe3adf8c794 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Mon, 11 Jul 2022 14:17:06 -0400
Subject: [PATCH] expand logging in the get-passes.py error handling case

maybe will reveal some useful info some day
---
 nixos/tests/test_privatestorage.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/nixos/tests/test_privatestorage.py b/nixos/tests/test_privatestorage.py
index 91177949..3b4cc7a3 100644
--- a/nixos/tests/test_privatestorage.py
+++ b/nixos/tests/test_privatestorage.py
@@ -118,8 +118,9 @@ def test(
     except:
         # Dump the fake Stripe API server logs, too, since the error may arise
         # from a PaymentServer/Stripe interaction.
-        code, output = api_stripe_com.execute('journalctl -u api.stripe.com')
-        api_stripe_com.log(output)
+        for node, unit in [(api_stripe_com, "api.stripe.com"), (issuer, "zkapissuer")]:
+            code, output = node.execute(f'journalctl -u {unit}')
+            node.log(output)
 
         raise
 
-- 
GitLab