gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: debug


From: gnunet
Subject: [taler-deployment] branch master updated: debug
Date: Fri, 28 May 2021 18:31:45 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 863bafe  debug
863bafe is described below

commit 863bafebbb8b751e01e8ac7e0df79aba4b2b2ca8
Author: MS <ms@taler.net>
AuthorDate: Fri May 28 18:31:42 2021 +0200

    debug
---
 bin/taler-deployment-config-instances | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/taler-deployment-config-instances 
b/bin/taler-deployment-config-instances
index 7153287..219ee4d 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -27,21 +27,26 @@ def expect_env(name):
 def wait_merchant_up():
     # Check it started correctly and it is ready to serve requests.
     checks = 10
+    url = urljoin(MERCHANT_BACKEND_BASE_URL, "/config")
+    print("Check URL: {}".format(url))
     while checks > 0:
 
         try:
-            resp = requests.get(urljoin(MERCHANT_BACKEND_BASE_URL, "/config"), 
timeout=1.5)
+            resp = requests.get(url, timeout=1.5)
         except Exception:
+            print("Merchant unreachable")
             sleep(1)
             checks -= 1
             continue
 
         if resp.status_code != 200:
+            print("Merchant reachable, but the request fails.")
             sleep(1)
             checks -= 1
             continue
 
         # Ready.
+        print("Merchant is up and running")
         break
 
     if checks == 0:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]