diff --git a/server/lib/serverIpService.ts b/server/lib/serverIpService.ts index fb25c1c2..0a135ef2 100644 --- a/server/lib/serverIpService.ts +++ b/server/lib/serverIpService.ts @@ -1,3 +1,4 @@ +import logger from "@server/logger"; import axios from "axios"; let serverIp: string | null = null; @@ -13,8 +14,8 @@ export async function fetchServerIp() { try { const response = await axios.get(url, { timeout: 5000 }); serverIp = response.data.trim(); - console.log("Detected public IP:", serverIp); - return; + logger.debug("Detected public IP: " + serverIp); + return; } catch (err: any) { console.warn(`Failed to fetch server IP from ${url}: ${err.message || err.code}`); } diff --git a/src/app/[orgId]/settings/general/page.tsx b/src/app/[orgId]/settings/general/page.tsx index 8f2e6820..1035fa4c 100644 --- a/src/app/[orgId]/settings/general/page.tsx +++ b/src/app/[orgId]/settings/general/page.tsx @@ -51,16 +51,8 @@ import { useTranslations } from "next-intl"; import { build } from "@server/build"; import { SwitchInput } from "@app/components/SwitchInput"; import { SecurityFeaturesAlert } from "@app/components/SecurityFeaturesAlert"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger -} from "@app/components/ui/dropdown-menu"; -import { ChevronDown } from "lucide-react"; import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext"; import { useSubscriptionStatusContext } from "@app/hooks/useSubscriptionStatusContext"; -import { Alert, AlertDescription } from "@app/components/ui/alert"; // Session length options in hours const SESSION_LENGTH_OPTIONS = [ @@ -284,11 +276,6 @@ export default function GeneralPage() { } } - const getLabelForValue = (value: number) => { - const option = LOG_RETENTION_OPTIONS.find((opt) => opt.value === value); - return option ? t(option.label) : `${value} days`; - }; - return ( - - -