From 2282582fafb2430c614c1ae86ba4666539304b64 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 24 Feb 2020 19:12:22 +0000 Subject: [PATCH] debug --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 218a8a78c..0e5eb3d88 100644 --- a/daemon.py +++ b/daemon.py @@ -942,6 +942,7 @@ class PubServer(BaseHTTPRequestHandler): self.path) if blogFilename and nickname: postJsonObject=loadJson(blogFilename) + print('Blog post loaded') if isBlogPost(postJsonObject): msg=htmlBlogPost(self.server.baseDir, \ self.server.httpPrefix, \ @@ -952,6 +953,8 @@ class PubServer(BaseHTTPRequestHandler): self._set_headers('text/html',len(msg),cookie) self._write(msg) return + else: + print("This isn't a blog post "+str(postJsonObject)) self._404() return