From ff648e774244786be7289fc51b58fe63fcc05b65 Mon Sep 17 00:00:00 2001 From: Joan Cano Date: Thu, 2 Mar 2023 12:40:47 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=A1s=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wallamanta/worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallamanta/worker.py b/wallamanta/worker.py index 4437bb6..da26da6 100644 --- a/wallamanta/worker.py +++ b/wallamanta/worker.py @@ -72,7 +72,8 @@ class Worker: articles = self.request(product['product_name'], 0, product['latitude'], product['longitude'], product['distance'], product['condition'], product['min_price'], product['max_price']) for article in articles: if not article['id'] in list: - logging.info("Found article {}".format(article['title'])) + logging.info(f"Found article {article['title']}") + logging.info(f"Description (parsed): {helpers.telegram_escape_characters(article['description'])}") try: if not self.has_excluded_words(article['title'].lower(), article['description'].lower(), product['exclude']) and not self.is_title_key_word_excluded(article['title'].lower(), product['title_keyword_exclude']): try: