logger clean up

This commit is contained in:
Storme-bit
2026-04-27 00:09:16 -07:00
parent 66a95f4479
commit 54218894c0
13 changed files with 30 additions and 37 deletions
@@ -1,5 +1,5 @@
import { API_DEFAULTS } from "../config/constants";
import { logger } from "@nexusai/shared";
const BASE_URL = import.meta.env.VITE_ORCHESTRATION_URL ?? '';
@@ -79,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) {
logger.error('[chat-client] Failed to parse SSE event:', raw, err);
console.error('[chat-client] Failed to parse SSE event:', raw, err);
}
}
}