Skip to content

Commit 77a6faf

Browse files
committed
adding logging to manifest loading
Signed-off-by: Jesse Jaggars <jjaggars@redhat.com>
1 parent 41e7159 commit 77a6faf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

receptor/buffers/file.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def _read_manifest(self):
5757
return json.load(fp)
5858
except FileNotFoundError:
5959
return []
60+
except json.decoder.JSONDecodeError:
61+
with open(self._manifest_path, "r") as fp:
62+
logger.error("failed to decode manifest: %s", fp.read())
63+
raise
6064

6165
def _path_for_ident(self, ident):
6266
return os.path.join(self._message_path, ident)

0 commit comments

Comments
 (0)