Enhance caching mechanism and logging configuration
- Updated .gitignore to include additional IDE and OS files, as well as log and web build directories. - Expanded config.sample.yaml to include cache configuration options for memory and Redis. - Modified wallamonitor.py to load cache configuration and initialize ArticleCache. - Refactored QueueManager to utilize ArticleCache for tracking notified articles. - Improved logging setup to dynamically determine log file path based on environment.
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import logging
|
||||
|
||||
class WorkerConditions:
|
||||
def __init__(self, item_monitoring, general_args):
|
||||
self._item_monitoring = item_monitoring
|
||||
self._general_args = general_args
|
||||
self.logger = logging.getLogger(__name__)
|
||||
|
||||
def _has_words(self, text, word_list):
|
||||
return any(word in text for word in word_list)
|
||||
|
||||
Reference in New Issue
Block a user