You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2017/08/03 06:12:14 UTC

qpid-cpp git commit: QPID-7874 Use qpid-route quiet option to suppress extra link checks

Repository: qpid-cpp
Updated Branches:
  refs/heads/master edccbc9e1 -> f676974d0


QPID-7874 Use qpid-route quiet option to suppress extra link checks


Project: http://git-wip-us.apache.org/repos/asf/qpid-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-cpp/commit/f676974d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-cpp/tree/f676974d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-cpp/diff/f676974d

Branch: refs/heads/master
Commit: f676974d0dcf4c4fb35ac7fc685be08ff91806d5
Parents: edccbc9
Author: Chris Richardson <ch...@fourc.eu>
Authored: Wed Aug 2 21:54:46 2017 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Wed Aug 2 23:23:39 2017 +0100

----------------------------------------------------------------------
 management/python/bin/qpid-route | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/f676974d/management/python/bin/qpid-route
----------------------------------------------------------------------
diff --git a/management/python/bin/qpid-route b/management/python/bin/qpid-route
index 605bfd9..fc94dfe 100755
--- a/management/python/bin/qpid-route
+++ b/management/python/bin/qpid-route
@@ -194,11 +194,12 @@ class RouteManager:
         return None
 
     def checkLink(self, link):
-        retry = 3
-        while link is None or (link.state in ("Waiting", "Connecting", "Closing") and retry > 0):
-            sleep(1)
-            link = self.getLink()
-            retry -= 1
+        if not config._quiet:
+            retry = 3
+            while link is None or (link.state in ("Waiting", "Connecting", "Closing") and retry > 0):
+                sleep(1)
+                link = self.getLink()
+                retry -= 1
 
         if link == None:
             raise Exception("Link failed to create")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org