From bc7e2a900c3835410c6b709460c6364ad159cf3a Mon Sep 17 00:00:00 2001 From: zaidbamber161 Date: Thu, 11 Jul 2019 19:01:27 +0500 Subject: [PATCH 1/4] Added logs for XQueue --- common/lib/capa/capa/xqueue_interface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py index 7e34fa6791..6fba165774 100644 --- a/common/lib/capa/capa/xqueue_interface.py +++ b/common/lib/capa/capa/xqueue_interface.py @@ -102,6 +102,11 @@ class XQueueInterface(object): if error != 0: # when the login fails log.debug("Failed to login to queue: %s", content) + log.info( + u"Login failed content information:{content} " + u"Login failed error information:{error} " + .format(content=content, error=error) + ) return (error, content) if files_to_upload is not None: # Need to rewind file pointers From f86d0c8e1600cb915dadd4f74440e7284ce752ec Mon Sep 17 00:00:00 2001 From: zaidbamber161 Date: Thu, 11 Jul 2019 21:54:29 +0500 Subject: [PATCH 2/4] Fixed quality test --- common/lib/capa/capa/xqueue_interface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py index 6fba165774..00b0205469 100644 --- a/common/lib/capa/capa/xqueue_interface.py +++ b/common/lib/capa/capa/xqueue_interface.py @@ -104,8 +104,7 @@ class XQueueInterface(object): log.debug("Failed to login to queue: %s", content) log.info( u"Login failed content information:{content} " - u"Login failed error information:{error} " - .format(content=content, error=error) + u"Login failed error information:{error} ".format(content=content, error=error) ) return (error, content) if files_to_upload is not None: From f02b34c1a1dfd6935fd846c777bb522cb9568371 Mon Sep 17 00:00:00 2001 From: zaidbamber161 Date: Fri, 12 Jul 2019 17:28:08 +0500 Subject: [PATCH 3/4] Updated logs information --- common/lib/capa/capa/xqueue_interface.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py index 00b0205469..545558c924 100644 --- a/common/lib/capa/capa/xqueue_interface.py +++ b/common/lib/capa/capa/xqueue_interface.py @@ -102,10 +102,8 @@ class XQueueInterface(object): if error != 0: # when the login fails log.debug("Failed to login to queue: %s", content) - log.info( - u"Login failed content information:{content} " - u"Login failed error information:{error} ".format(content=content, error=error) - ) + log.info(u"Login failed content information : {content} " + u"with error: {error}".format(content=content, error=error)) return (error, content) if files_to_upload is not None: # Need to rewind file pointers From d4c41008b4b52c5a2bbad48e6ef0a03878a2f728 Mon Sep 17 00:00:00 2001 From: zaidbamber161 Date: Mon, 15 Jul 2019 15:48:35 +0500 Subject: [PATCH 4/4] Updated logs information --- common/lib/capa/capa/xqueue_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py index 545558c924..72cf2b701e 100644 --- a/common/lib/capa/capa/xqueue_interface.py +++ b/common/lib/capa/capa/xqueue_interface.py @@ -102,8 +102,8 @@ class XQueueInterface(object): if error != 0: # when the login fails log.debug("Failed to login to queue: %s", content) - log.info(u"Login failed content information : {content} " - u"with error: {error}".format(content=content, error=error)) + log.info(u"Login failed content information : {content} with error: {error}".format( + content=content, error=error)) return (error, content) if files_to_upload is not None: # Need to rewind file pointers