chore: remove debug console.log statements from providers and layout

This commit is contained in:
Fredrik Burmester
2026-01-28 20:21:56 +01:00
parent 74114893e5
commit 8dcd4c40f9
3 changed files with 1 additions and 20 deletions

View File

@@ -253,22 +253,19 @@ function Layout() {
deviceId: getOrSetDeviceId(),
userId: user.Id,
})
.then((_) => console.log("Posted expo push token"))
.catch((_) =>
writeErrorLog("Failed to push expo push token to plugin"),
);
} else console.log("No token available");
}
}, [api, expoPushToken, user]);
const registerNotifications = useCallback(async () => {
if (Platform.OS === "android") {
console.log("Setting android notification channel 'default'");
await Notifications?.setNotificationChannelAsync("default", {
name: "default",
});
// Create dedicated channel for download notifications
console.log("Setting android notification channel 'downloads'");
await Notifications?.setNotificationChannelAsync("downloads", {
name: "Downloads",
importance: Notifications.AndroidImportance.DEFAULT,

View File

@@ -34,13 +34,6 @@ export function ServerUrlProvider({ children }: Props): React.ReactElement {
const { switchServerUrl } = useJellyfin();
const { ssid, permissionStatus } = useWifiSSID();
console.log(
"[ServerUrlProvider] ssid:",
ssid,
"permissionStatus:",
permissionStatus,
);
const [isUsingLocalUrl, setIsUsingLocalUrl] = useState(false);
const [effectiveServerUrl, setEffectiveServerUrl] = useState<string | null>(
null,
@@ -76,13 +69,6 @@ export function ServerUrlProvider({ children }: Props): React.ReactElement {
const targetUrl = shouldUseLocal ? config!.localUrl : remoteUrl;
console.log("[ServerUrlProvider] evaluateAndSwitchUrl:", {
ssid,
shouldUseLocal,
targetUrl,
config,
});
switchServerUrl(targetUrl);
setIsUsingLocalUrl(shouldUseLocal);
setEffectiveServerUrl(targetUrl);
@@ -90,7 +76,6 @@ export function ServerUrlProvider({ children }: Props): React.ReactElement {
// Manual refresh function for when config changes
const refreshUrlState = useCallback(() => {
console.log("[ServerUrlProvider] refreshUrlState called");
evaluateAndSwitchUrl();
}, [evaluateAndSwitchUrl]);

View File

@@ -66,7 +66,6 @@ export const WebSocketProvider = ({ children }: WebSocketProviderProps) => {
const reconnectDelay = 10000;
newWebSocket.onopen = () => {
console.log("WebSocket connection opened");
setIsConnected(true);
reconnectAttemptsRef.current = 0;
keepAliveInterval = setInterval(() => {