import { Button } from "@/components/ui/button"; import { getErrorMessage, useGetCoreConfigQuery, useUpdateCoreConfigMutation } from "@/lib/store"; import { cn } from "@/lib/utils"; import { ScrollText } from "lucide-react"; import { useCallback } from "react"; import { toast } from "sonner"; export function LoggingDisabledView() { const { data: bifrostConfig } = useGetCoreConfigQuery({ fromDB: true }); const [updateCoreConfig, { isLoading }] = useUpdateCoreConfigMutation(); const handleEnable = useCallback(async () => { if (!bifrostConfig?.client_config) { toast.error("Configuration not loaded"); return; } try { await updateCoreConfig({ ...bifrostConfig, client_config: { ...bifrostConfig.client_config, enable_logging: true }, }).unwrap(); toast.success("Logging enabled."); } catch (error) { toast.error(getErrorMessage(error)); } }, [bifrostConfig, updateCoreConfig]); return (

Logging is disabled

Enable logging to view LLM and MCP request logs, traces, and observability data.
); }