added more descriptive test OTP id and failure log message

This commit is contained in:
Gani Georgiev committed 2024-12-02 13:46:29 +02:00
1 parent 77ac44a49a
commit 2d828ef9eb
3 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -89,8 +89,8 @@ func SendRecordOTP(app core.App, authRecord *core.Record, otpId string, pass str
otp, err := e.App.FindOTPById(otpId)
if err != nil {
e.App.Logger().Error(
"Failed to find OTP to update its sentTo field",
e.App.Logger().Warn(
"Unabled to find OTP to update its sentTo field (either it was already deleted or the id is nonexisting)",
"error", err,
"otpId", otpId,
)