mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 06:10:55 +08:00
fix(llm): fix logging type check
This commit is contained in:
parent
41906abaf9
commit
e96fdbf72f
1 changed files with 4 additions and 4 deletions
|
|
@ -429,7 +429,7 @@ export async function processProviderStream(
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Improved error handling to preserve original error even if logging fails
|
// Improved error handling to preserve original error even if logging fails
|
||||||
let logError = null;
|
let logError: unknown | null = null;
|
||||||
try {
|
try {
|
||||||
log.error(`Error in ${options.providerName} stream processing: ${error instanceof Error ? error.message : String(error)}`);
|
log.error(`Error in ${options.providerName} stream processing: ${error instanceof Error ? error.message : String(error)}`);
|
||||||
log.error(`Error details: ${error instanceof Error ? error.stack : 'No stack trace available'}`);
|
log.error(`Error details: ${error instanceof Error ? error.stack : 'No stack trace available'}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue