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