From 9c7d3c615be465e70372422f7eba9d55b1d9e252 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 18 Mar 2023 18:22:28 +0000 Subject: [PATCH] Add debug condition --- daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 8f5ec9fa8..267d0d073 100644 --- a/daemon.py +++ b/daemon.py @@ -2166,10 +2166,11 @@ class PubServer(BaseHTTPRequestHandler): self.server.postreq_busy = False return 2 - # follower synchronization requests + # follower synchronization endpoint information if self.headers.get('Collection-Synchronization'): - print('Collection-Synchronization: ' + - str(self.headers['Collection-Synchronization'])) + if debug: + print('Collection-Synchronization: ' + + str(self.headers['Collection-Synchronization'])) # Convert the headers needed for signature verification to dict headers_dict = {}