chore: drop full error stack traces from chat error logs
Shorten the ✗ ERROR 502 / stream ERROR lines to the message only; the multi-KB next-dev stack trace polluted the console on every provider error.
This commit is contained in:
@@ -78,7 +78,7 @@ export function createStreamController({ onDisconnect, onError, log, provider, m
|
||||
return;
|
||||
}
|
||||
|
||||
logStream("✗", `ERROR: ${error.message}${error.stack ? `\n ${error.stack}` : ""}`, true);
|
||||
logStream("✗", `ERROR: ${error.message}`, true);
|
||||
onError?.(error);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user