check-mirroring: Move some prints to be conditional on "verbose".

(imported from commit 90db591f5fc3e4d1f830ed16bca9380a3a9dddd3)
This commit is contained in:
Tim Abbott 2012-11-08 13:39:09 -05:00
parent 1ef33bc5ea
commit 45430e3af2
1 changed files with 6 additions and 3 deletions

View File

@ -68,7 +68,8 @@ if child_pid == 0:
"content": str(hzkey2), "content": str(hzkey2),
"stream": "tabbott-nagios-test", "stream": "tabbott-nagios-test",
}); });
print "Sent Humbug messages!" if options.verbose:
print "Sent Humbug messages!"
time.sleep(0.5) time.sleep(0.5)
import zephyr import zephyr
@ -85,7 +86,8 @@ if child_pid == 0:
cls="tabbott-nagios-test", instance="test") cls="tabbott-nagios-test", instance="test")
zeph.setmessage("%s\0%s" % (zsig, zhkey2)) zeph.setmessage("%s\0%s" % (zsig, zhkey2))
zeph.send() zeph.send()
print "Sent Zephyr messages!" if options.verbose:
print "Sent Zephyr messages!"
else: else:
@ -99,7 +101,8 @@ else:
max_message_id = humbug_client.get_profile()['max_message_id'] max_message_id = humbug_client.get_profile()['max_message_id']
time.sleep(10) time.sleep(10)
print "Receiving messages!" if options.verbose:
print "Receiving messages!"
notices = [] notices = []
while True: while True:
notice = zephyr.receive(block=False) notice = zephyr.receive(block=False)