From 2ac6a688cac3d6dd684bdd58f9d9932a47718ecc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Dec 2023 18:38:01 +0000 Subject: [PATCH] Debug for context --- daemon.py | 3 ++- scripts/badtype | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index dfa4c2d7e..4bfc78999 100644 --- a/daemon.py +++ b/daemon.py @@ -2153,7 +2153,8 @@ class PubServer(BaseHTTPRequestHandler): print('INBOX: checking valid context') if not has_valid_context(message_json): print('INBOX: ' + - 'message arriving at inbox queue has no valid context') + 'message arriving at inbox queue has no valid context ' + + str(message_json)) self._400() self.server.postreq_busy = False return 3 diff --git a/scripts/badtype b/scripts/badtype index 931e4297e..54318ccdf 100755 --- a/scripts/badtype +++ b/scripts/badtype @@ -1,2 +1,2 @@ #!/bin/bash -journalctl -u epicyon -r | grep "WARN: type from\|is not a string\|should be a string\|should be lists\|should be strings" +journalctl -u epicyon -r | grep "WARN: type from\|is not a string\|should be a string\|should be lists\|should be strings\|has no valid context"