Skip to content

Commit

Permalink
Add verbose log to indicate successful verification
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Jul 4, 2023
1 parent d29e3a5 commit 784f8d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.revenuecat.purchases.VerificationResult
import com.revenuecat.purchases.common.AppConfig
import com.revenuecat.purchases.common.errorLog
import com.revenuecat.purchases.common.networking.Endpoint
import com.revenuecat.purchases.common.verboseLog
import com.revenuecat.purchases.common.warnLog
import com.revenuecat.purchases.strings.NetworkStrings
import com.revenuecat.purchases.utils.Result
Expand Down Expand Up @@ -142,6 +143,7 @@ class SigningManager(
)

return if (verificationResult) {
verboseLog(NetworkStrings.VERIFICATION_SUCCESS.format(urlPath))
VerificationResult.VERIFIED
} else {
errorLog(NetworkStrings.VERIFICATION_ERROR.format(urlPath))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ object NetworkStrings {
" but none provided."
const val VERIFICATION_INVALID_SIZE = "Verification: Request to '%s' has signature with wrong size. '%s'"
const val VERIFICATION_ERROR = "Verification: Request to '%s' failed verification."
const val VERIFICATION_SUCCESS = "Verification: Request to '%s' verified successfully."
}

0 comments on commit 784f8d9

Please sign in to comment.