Enhance edge gateway logs handling and fix shell socket newline character formatting

This commit is contained in:
Jeppe Bundgaard
2026-04-23 22:05:02 +02:00
parent b98cef0caa
commit 2258a609e6
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -564,7 +564,9 @@ async function main() {
token: authToken,
});
const timeline = Array.isArray(logs?.data?.entries) ? logs.data.entries : [];
const timeline = Array.isArray(logs?.data?.entries)
? logs.data.entries
: (Array.isArray(logs?.data?.timeline) ? logs.data.timeline : []);
return timeline.some((entry) => {
const nestedEntry = entry?.entry && typeof entry.entry === "object" ? entry.entry : null;
@@ -607,7 +609,7 @@ async function main() {
shellSocket.send(JSON.stringify({
type: "input",
data: "printf 'edge-e2e-shell\\n'; exit\r",
data: "printf 'edge-e2e-shell\\n'; exit\n",
}));
await waitForSocketMessage(