1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix range header to correctly fetch latest logs (#6202)

* Fix range header to correctly fetch latest logs

Add a colon before line numbers to indicate that no cursor is used.
This makes the range header work when fetching latest logs from
systemd-journal-gatewayd.

* Fix pytest
This commit is contained in:
Stefan Agner
2025-09-23 16:43:20 +02:00
committed by GitHub
parent 595e33ac68
commit ed7155604c
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ async def common_test_api_advanced_logs(
logs_call = journald_logs.call_args_list[1]
assert logs_call[1]["params"]["SYSLOG_IDENTIFIER"] == syslog_identifier
assert logs_call[1]["params"]["CONTAINER_LOG_EPOCH"] == "12345"
assert logs_call[1]["range_header"] == "entries=0:18446744073709551615"
assert logs_call[1]["range_header"] == "entries=:0:18446744073709551615"
journald_logs.reset_mock()