Skip to content

Commit b592cbb

Browse files
committedMar 13, 2025
test changes
1 parent a57ea64 commit b592cbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎platform_monitoring/logs.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,11 @@ async def __aexit__(self, *args: object) -> None:
14501450

14511451
def encode_and_handle_log(self, log_data: list[Any]) -> bytes:
14521452
try:
1453-
log = orjson.loads(log_data[1])["_entry"]
1453+
log = orjson.loads(log_data[1])
1454+
if isinstance(log, dict):
1455+
log = log["_entry"]
1456+
else:
1457+
log = str(log)
14541458
except orjson.JSONDecodeError:
14551459
log = log_data[1]
14561460
if log and log[-1] != "\n":
@@ -1534,6 +1538,7 @@ async def get_pod_log_reader( # noqa: C901
15341538
should_get_archive_logs = False
15351539
except JobNotFoundException:
15361540
should_get_live_logs = False
1541+
archive_border_dt = now_dt
15371542

15381543
has_archive = False
15391544

0 commit comments

Comments
 (0)