From f91d93ba05b7786ba510929f0e59b50efea1f866 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Jul 2021 19:22:34 +0100 Subject: [PATCH] Debug messages --- daemon.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/daemon.py b/daemon.py index 0791164c0..3e5908092 100644 --- a/daemon.py +++ b/daemon.py @@ -13790,21 +13790,29 @@ class PubServer(BaseHTTPRequestHandler): return -1 elif postType == 'newshare': if not fields.get('itemQty'): + print(postType + ' no itemQty') return -1 if not fields.get('itemType'): + print(postType + ' no itemType') return -1 if not fields.get('itemPrice'): + print(postType + ' no itemPrice') return -1 if not fields.get('itemCurrency'): + print(postType + ' no itemCurrency') return -1 if not fields.get('category'): + print(postType + ' no category') return -1 if not fields.get('location'): + print(postType + ' no location') return -1 if not fields.get('duration'): + print(postType + ' no duratio') return -1 if attachmentMediaType: if attachmentMediaType != 'image': + print('Attached media is not an image') return -1 durationStr = fields['duration'] if durationStr: @@ -13825,6 +13833,7 @@ class PubServer(BaseHTTPRequestHandler): itemCurrency = "EUR" if fields['itemCurrency']: itemCurrency = fields['itemCurrency'] + print('Adding shared item') addShare(self.server.baseDir, self.server.httpPrefix, nickname,