Fixed missing value for logging

This commit is contained in:
Brage 2023-07-21 00:39:39 +02:00
parent 7d0528572f
commit 0760cf418f

View File

@ -131,10 +131,11 @@ class MessageHandlerThread(threading.Thread):
logger.info("Cache hit for %s", data_value)
result = cache_result
else:
logger.info("Not in cache: %s", data_value)
logger.info("Searching in sources for information about %s", data_value)
result = self.perform_action(title=data_value)
if (result.statusType == "SUCCESS"):
logger.info("Storing response for %s in in-memory cache")
logger.info("Storing response for %s in in-memory cache", data_value)
ResultCache.add(data_value, result)