1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-04-02 08:12:47 +01:00
Files
supervisor/tests/fixtures/logs_export_supervisor.txt
Jan Čermák 0814552b2a Use Journal Export Format for host (advanced) logs (#4963)
* Use Journal Export Format for host (advanced) logs

Add methods for handling Journal Export Format and use it for fetching
of host logs. This is foundation for colored streaming logs for other
endpoints as well.

* Make pylint happier - remove extra pass statement

* Rewrite journal gateway tests to mock ClientResponse's StreamReader

* Handle connection refused error when connecting to journal-gatewayd

* Use SYSTEMD_JOURNAL_GATEWAYD_SOCKET global path also for connection

* Use parsing algorithm suggested by @agners in review

* Fix timestamps in formatting, always use UTC for now

* Add tests for Accept header in host logs

* Apply suggestions from @agners

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Bail out of parsing earlier if field is not in required fields

* Fix parsing issue discovered in the wild and add test case

* Make verbose formatter more tolerant

* Use some bytes' native functions for some minor optimizations

* Move MalformedBinaryEntryError to exceptions module, add test for it

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
2024-03-20 09:00:45 +01:00

37 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
__CURSOR=s=83fee99ca0c3466db5fc120d52ca7dd8;i=2049389;b=f5a5c442fa6548cf97474d2d57c920b3;m=4263828e8c;t=612dda478b01b;x=9ae12394c9326930
__REALTIME_TIMESTAMP=1709593016709147
__MONOTONIC_TIMESTAMP=285137342092
__SEQNUM=33854345
__SEQNUM_ID=83fee99ca0c3466db5fc120d52ca7dd8
_BOOT_ID=f5a5c442fa6548cf97474d2d57c920b3
PRIORITY=3
_TRANSPORT=journal
_PID=466
_UID=0
_GID=0
_COMM=dockerd
_EXE=/usr/bin/dockerd
_CMDLINE=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
_CAP_EFFECTIVE=1ffffffffff
_SYSTEMD_CGROUP=/system.slice/docker.service
_SYSTEMD_UNIT=docker.service
_SYSTEMD_SLICE=system.slice
_SYSTEMD_INVOCATION_ID=f9f6d43306dd410ea99e0bb6338d2a45
_MACHINE_ID=edb710b8363b4ff48aed6e75a27f85a6
_HOSTNAME=ha-hloub
_RUNTIME_SCOPE=system
CONTAINER_NAME=hassio_supervisor
CONTAINER_ID_FULL=352dd9fa52886a348a57d1a9cb4ca59ff99e21758e0dfc4d3593e8e871fb410d
CONTAINER_ID=352dd9fa5288
CONTAINER_TAG=hassio_supervisor
IMAGE_NAME=ghcr.io/home-assistant/amd64-hassio-supervisor:latest
SYSLOG_IDENTIFIER=hassio_supervisor
CONTAINER_LOG_EPOCH=bc620bcdf00a2a7df94d3e7d9951cc7fb69210fa8428900fc332fbd97870d1d9
CONTAINER_LOG_ORDINAL=2235
MESSAGE
J24-03-04 23:56:56 INFO (MainThread) [__main__] Closing Supervisor
SYSLOG_TIMESTAMP=2024-03-04T22:56:56.709077635Z
_SOURCE_REALTIME_TIMESTAMP=1709593016709126