From eaf2344caa7d67cb18b88029c7fea6e008e0ed52 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Jun 2020 10:18:17 +0100 Subject: [PATCH] Debug for likes --- daemon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index a2a5f42dd..e7f1b5433 100644 --- a/daemon.py +++ b/daemon.py @@ -2525,7 +2525,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.domain, likeUrl) if likedPostFilename: - print('Updating likes for ' + likedPostFilename) + if self.server.debug: + print('Updating likes for ' + likedPostFilename) updateLikesCollection(self.server.recentPostsCache, self.server.baseDir, likedPostFilename, likeUrl, @@ -2623,7 +2624,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.domain, likeUrl) if likedPostFilename: - print('Removing likes for ' + likedPostFilename) + if self.server.debug: + print('Removing likes for ' + likedPostFilename) undoLikesCollectionEntry(self.server.recentPostsCache, self.server.baseDir, likedPostFilename, likeUrl,