From 2b9bf112ad9422ade673514f0af4086185261194 Mon Sep 17 00:00:00 2001 From: Anon Date: Thu, 14 Nov 2024 13:01:44 +0100 Subject: [PATCH] Removed a logger --- app/lib/hooks/useWhisperCredentials.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/lib/hooks/useWhisperCredentials.ts b/app/lib/hooks/useWhisperCredentials.ts index 57d0e2551..f9b0964b8 100644 --- a/app/lib/hooks/useWhisperCredentials.ts +++ b/app/lib/hooks/useWhisperCredentials.ts @@ -1,8 +1,6 @@ import { useEffect, useState } from 'react'; import { createScopedLogger } from '~/utils/logger'; -const logger = createScopedLogger('useWhisperCredentials'); - export function useWhisperCredentials() { const [hasCredentials, setHasCredentials] = useState(false); const [isLoading, setIsLoading] = useState(true); @@ -10,22 +8,16 @@ export function useWhisperCredentials() { useEffect(() => { async function checkCredentials() { try { - logger.info('Checking Whisper credentials...'); const response = await fetch('/api/voice-to-text'); if (!response.ok) { - logger.error('Failed to check credentials:', response.status); setHasCredentials(false); return; } const data = await response.json(); - logger.info('Credentials check result:', JSON.stringify(data, null, 2)); - - logger.info('Setting hasCredentials to:', data.hasCredentials); setHasCredentials(data.hasCredentials); } catch (error) { - logger.error('Failed to check Whisper credentials:', error); setHasCredentials(false); } finally { setIsLoading(false);