File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/react/src/hooks/cloud/krisp Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @livekit/components-react " : patch
3+ ---
4+
5+ Use shared logger for krisp hook
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { LocalAudioTrack } from 'livekit-client' ;
3+ import { log } from '@livekit/components-core' ;
34import type { KrispNoiseFilterProcessor , NoiseFilterOptions } from '@livekit/krisp-noise-filter' ;
45import type { TrackReferenceOrPlaceholder } from '@livekit/components-core' ;
56import { useLocalParticipant } from '../../..' ;
@@ -52,7 +53,7 @@ export function useKrispNoiseFilter(options: useKrispNoiseFilterOptions = {}) {
5253 ) ;
5354
5455 if ( ! isKrispNoiseFilterSupported ( ) ) {
55- console . warn ( 'Krisp noise filter is not supported in this browser' ) ;
56+ log . warn ( 'LiveKit- Krisp noise filter is not supported in this browser' ) ;
5657 return ;
5758 }
5859 if ( ! krispProcessor ) {
@@ -86,7 +87,7 @@ export function useKrispNoiseFilter(options: useKrispNoiseFilterOptions = {}) {
8687 } )
8788 . catch ( ( e : any ) => {
8889 setIsNoiseFilterEnabled ( false ) ;
89- console . error ( e ) ;
90+ log . error ( 'Krisp hook: error enabling filter' , e ) ;
9091 } )
9192 . finally ( ( ) => {
9293 setIsNoiseFilterPending ( false ) ;
You can’t perform that action at this time.
0 commit comments