Skip to content

Conversation

@umgfoin
Copy link

@umgfoin umgfoin commented Nov 25, 2025

Attempt UTF-8-encoding or (ignore unprintable) for binary-logdata (BLOB).
journalctl masks binary log data as [xxxB blob data]:
Nov 25 13:56:00 localhost imap[2795947]: [53B blob data]

This patch attempts to encode logged binary-data in UTF-8 and makes it displayable using decode("UTF-8", "ignore"). In my opinion, this increases information density in cases where binary data still contain readable text:
[2025-11-25 13:56:00.201637]: [::ffff:xxx.xxx.xxx.xxx]:20648 < ��� A� +|N�� 8րK ];>F^: ret=0h code=0

Fixes #56

Fixes grommunio#56.

Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

g-admin-api: endpoint /api/v1/system/logs/ fails when reading blob-type journal-entries with TypeError: Object of type bytes is not JSON serializable

1 participant