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)) {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user