From e19e1eac46731e14094f96cb40367c874aa736a1 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 9 Oct 2020 19:52:57 +0100 Subject: [PATCH] [09.10.20] Connection testing --- src/utils/sentimentAnalyser.py | 2 +- src/utils/spamFilter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/sentimentAnalyser.py b/src/utils/sentimentAnalyser.py index 314112b..11da95d 100644 --- a/src/utils/sentimentAnalyser.py +++ b/src/utils/sentimentAnalyser.py @@ -10,7 +10,7 @@ class keys(): self.sentiment_analyser_uri = os.getenv("SENTIMENT_URL") def callSentimentAnalyser(tweet): - log("Calling Sentiment Analyser for {}".format(tweet), 'INFO') + log("Calling Sentiment Analyser for [{}]".format(tweet), 'INFO') try: uri = keys().sentiment_analyser_uri + "/sentiment?tweet="+tweet response = requests.request("GET", uri) diff --git a/src/utils/spamFilter.py b/src/utils/spamFilter.py index 059107d..09030e9 100644 --- a/src/utils/spamFilter.py +++ b/src/utils/spamFilter.py @@ -16,7 +16,7 @@ def callSpamFilter(tweet): response = json.loads(response.text) - log("Spam Filter result for {} is {}".format(tweet, response["result"]), 'INFO') + log("Spam Filter result for [{}] is [{}]".format(tweet, response["result"]), 'INFO') return response["result"] except: