Merged in fix/improve-sas-error-logging (pull request #1854)

Improve SAS flow logging

* Improve logging


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-04-24 12:30:34 +00:00
parent 169094fc37
commit b354398c69
4 changed files with 12 additions and 9 deletions

View File

@@ -71,13 +71,13 @@ export const performLevelUpgrade = protectedProcedure
if (notLinked) {
const tierMatchErrorNotLinkedMessage =
"[SAS] tier match error - not linked"
console.log(tierMatchErrorNotLinkedMessage)
console.warn(tierMatchErrorNotLinkedMessage)
Sentry.captureMessage(tierMatchErrorNotLinkedMessage)
return { tierMatchState: "notLinked" }
}
const tierMatchErrorMessage = `[SAS] tier match error with status code ${apiResponse.status} and response ${await apiResponse.text()}`
console.log(tierMatchErrorMessage)
console.error(tierMatchErrorMessage)
Sentry.captureException(new Error(tierMatchErrorMessage))
return { tierMatchState: "error" }
})