Add a message when log channel is lagged
This commit is contained in:
parent
1331145333
commit
37f295cb95
5 changed files with 18 additions and 7 deletions
|
|
@ -66,7 +66,7 @@ const streamLogs = (
|
|||
text,
|
||||
},
|
||||
});
|
||||
throw new Error("retry");
|
||||
throw null;
|
||||
}
|
||||
|
||||
if (!response.body) {
|
||||
|
|
@ -88,7 +88,7 @@ const streamLogs = (
|
|||
setError({
|
||||
text: "log stream terminated",
|
||||
});
|
||||
throw new Error("retry");
|
||||
throw null;
|
||||
}
|
||||
|
||||
buffer = mergeBuffers(buffer, value);
|
||||
|
|
@ -110,6 +110,10 @@ const streamLogs = (
|
|||
if (canceled) {
|
||||
return;
|
||||
}
|
||||
if (e === null) {
|
||||
// We already set the error.
|
||||
return;
|
||||
}
|
||||
setError({
|
||||
text: "error streaming logs",
|
||||
details: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue