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

View File

@@ -2,7 +2,6 @@
import { useState, useEffect } from 'react';
import { fetchModels } from '../api/orchestration';
import { FALLBACK_MODELS, DEFAULT_MODEL } from '../config/constants';
const { logger } = require('@nexusai/shared');
export function useModels() {
const [models, setModels] = useState(FALLBACK_MODELS);
@@ -16,7 +15,7 @@ export function useModels() {
setSelectedModel(data[0]?.value ?? DEFAULT_MODEL);
})
.catch(err => {
logger.warn('[useModels] Falling back to static list:', err.message);
console.warn('[useModels] Falling back to static list:', err.message);
})
.finally(() => setLoading(false));
}, []);