N°5102 - Allow to send emails using GSuite SMTP and OAuth - Limit error size

This commit is contained in:
Eric Espie
2022-07-04 16:48:56 +02:00
parent 1b8e48539d
commit d388c3fd3d

View File

@@ -230,7 +230,7 @@ abstract class AsyncTask extends DBObject
$this->Set('remaining_retries', $this->GetMaxRetries($iErrorCode));
}
$this->Set('last_error', $sErrorMessage);
$this->SetTrim('last_error', $sErrorMessage);
$this->Set('last_error_code', $iErrorCode); // Note: can be ZERO !!!
$this->Set('last_attempt', time());