From 1c2407fe017f8da12ab87c6fa73396424aaf7f5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 13 Nov 2019 14:32:44 +0000 Subject: [PATCH] Some logging --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 165e31c0..3f50fcfc 100644 --- a/daemon.py +++ b/daemon.py @@ -359,6 +359,7 @@ class PubServer(BaseHTTPRequestHandler): else: self._set_headers('application/json',len(msg),None) self._write(msg) + print('instance metadata sent') return True if self.path.startswith('/api/v1/instance/peers'): # This is just a dummy result. @@ -372,6 +373,7 @@ class PubServer(BaseHTTPRequestHandler): else: self._set_headers('application/json',len(msg),None) self._write(msg) + print('instance peers metadata sent') return True if self.path.startswith('/api/v1/instance/activity'): # This is just a dummy result. @@ -381,6 +383,7 @@ class PubServer(BaseHTTPRequestHandler): else: self._set_headers('application/json',len(msg),None) self._write(msg) + print('instance activity metadata sent') return True return False @@ -397,6 +400,7 @@ class PubServer(BaseHTTPRequestHandler): else: self._set_headers('application/json',len(msg),None) self._write(msg) + print('nodeinfo sent') return True def _webfinger(self) -> bool: