From 69f580d193a33bae6d732e9c3644c269539cd0ca Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Tue, 3 Dec 2024 15:25:27 +0100 Subject: [PATCH] Write debug output inside stderr in an attempt to keep them in the logs --- frontend/src/routes/(authentication)/login/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(authentication)/login/+page.server.ts b/frontend/src/routes/(authentication)/login/+page.server.ts index d8751a554..576d8aeb2 100644 --- a/frontend/src/routes/(authentication)/login/+page.server.ts +++ b/frontend/src/routes/(authentication)/login/+page.server.ts @@ -30,7 +30,7 @@ interface AuthenticationFlow { function makeRedirectURL(currentLang: string, preferedLang: string, url: URL): string { const next = url.searchParams.get('next'); const secureNext = getSecureRedirect(next) || '/'; - console.log(`[DEBUG] '${currentLang}' === '${preferedLang}'`); + console.error(`[DEBUG] '${currentLang}' === '${preferedLang}'`); if (currentLang === preferedLang) { return secureNext; }