From c54cbc66d53f0acc7025f71ad8d95dac3a2d8640 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 5 Feb 2025 11:51:22 +0200 Subject: [PATCH] add debug --- imap_filter/imap_filter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/imap_filter/imap_filter.py b/imap_filter/imap_filter.py index 032a580..9ad5306 100644 --- a/imap_filter/imap_filter.py +++ b/imap_filter/imap_filter.py @@ -218,14 +218,11 @@ class ImapFilter: match = re.search(search, content, re.MULTILINE) if match: self._log.debug( - "Line '%s' found in current file", - search + "Line '%s' found in current file. '%s'", + search, + match.group(1) ) new_content = re.sub(search, replacement, content) - self._log.debug( - "New content: %s", - new_content - ) if content != new_content: self._log.debug( "Line it's different, so replacing it with '%s'",