Merged in fix/log-spam (pull request #2919)

fix(logging): changed unauthorized logs to debug instead of info

* fix(logging): changed unauthorized logs to debug instead of info


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-10-07 06:23:37 +00:00
parent 725b105637
commit a60c613756

View File

@@ -73,7 +73,7 @@ export async function serverClient() {
if (webviews.includes(fullPathname)) {
const redirectUrl = `/${lang}/webview/refresh?returnurl=${encodeURIComponent(fullPathname)}`
serverClientLogger.info(
serverClientLogger.debug(
"Unautorized in webview, redirecting to: ",
redirectUrl
)
@@ -82,7 +82,7 @@ export async function serverClient() {
}
const redirectUrl = `${login[lang]}?redirectTo=${encodeURIComponent(`/${lang}/${pathname}`)}`
serverClientLogger.info(
serverClientLogger.debug(
`[serverClient] onError redirecting to: ${redirectUrl}`
)
redirect(redirectUrl)