From 963c819f859a05d70a3f89d7d8c5c97e68756160 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 9 Feb 2020 21:20:34 +0100 Subject: [PATCH] Removed debug print and added logging stuff --- nw/gui/elements/doctree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/elements/doctree.py b/nw/gui/elements/doctree.py index a388a7a4..28222af9 100644 --- a/nw/gui/elements/doctree.py +++ b/nw/gui/elements/doctree.py @@ -252,6 +252,7 @@ class GuiDocTree(QTreeWidget): deleteItem function for each document in the Trash folder. """ + logger.debug("Emptying Trash folder") if self.theProject.trashRoot is None: self.makeAlert("There is no Trash folder.", nwAlert.INFO) return False @@ -261,7 +262,6 @@ class GuiDocTree(QTreeWidget): theTrash.remove(self.theProject.trashRoot) nTrash = len(theTrash) - print(theTrash) if nTrash == 0: self.makeAlert("The Trash folder is empty.", nwAlert.INFO) return False @@ -275,6 +275,7 @@ class GuiDocTree(QTreeWidget): if msgRes != QMessageBox.Yes: return False + logger.verbose("Deleting %d files from Trash" % nTrash) for tHandle in self.getTreeFromHandle(self.theProject.trashRoot): if tHandle == self.theProject.trashRoot: continue