[stickynotes-antispam] Add logging



commit e5017d4204716fbfd6f0ae51732304d2ae4f993f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 1 13:53:11 2019 +0200

    Add logging

 stickynotes-antispam.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index 58d0d40..3f8de64 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -54,6 +54,7 @@ def main():
         urlkey, data = paste
         if check_if_spam(data):
             with db.cursor() as c:
+                print("deleting {}".format(urlkey))
                 c.execute("""DELETE from main WHERE urlkey = %s""", (urlkey,))
 
     db.close()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]