logger updates

This commit is contained in:
Storme-bit
2026-04-26 22:28:54 -07:00
parent c86b565eed
commit 86e78cc4c6
23 changed files with 87 additions and 67 deletions
@@ -1,4 +1,5 @@
import { API_DEFAULTS } from "../config/constants";
import { logger } from "@nexusai/shared";
const BASE_URL = import.meta.env.VITE_ORCHESTRATION_URL ?? '';
@@ -78,7 +79,7 @@ export function streamMessage(sessionId, message, model, { onChunk, onDone, onEr
if (data.done) onDone({ model: data.model ?? model, tokenCount: data.tokenCount ?? 0 });
if (data.error) onError(new Error(data.error));
} catch (err) {
console.error('[chat-client] Failed to parse SSE event:', raw, err);
logger.error('[chat-client] Failed to parse SSE event:', raw, err);
}
}
}