From 5b697b9c56cc0e1d79776bc3e5cad8ce9c5e8c84 Mon Sep 17 00:00:00 2001 From: Dongsheng Yang Date: Tue, 5 May 2020 13:21:50 -0400 Subject: [PATCH] Update utils.py --- server/website/website/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/website/website/utils.py b/server/website/website/utils.py index 9af261a..906450d 100644 --- a/server/website/website/utils.py +++ b/server/website/website/utils.py @@ -603,11 +603,7 @@ def check_and_run_celery(): hostname = rabbitmq_url.split(':')[0] port = rabbitmq_url.split(':')[1].split('/')[0] rabbitmq_status = os.popen('telnet {} {}'.format(hostname, port)).read() - if 'Connected' in rabbitmq_status: - LOG.info('Rabbitmq is running.') - else: - LOG.warning('Rabbitmq is not running.') - return 'Rabbitmq is not running.' + LOG.info(rabbitmq_status) retries = 0 while retries < 5: