added more descriptive test OTP id and failure log message

This commit is contained in:
Gani Georgiev
2024-12-02 13:46:22 +02:00
parent 77ac44a49a
commit 2d828ef9eb
3 changed files with 7 additions and 3 deletions
+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,
)