silence error_log, for running too often

This commit is contained in:
Klaus Leithoff 2014-04-29 13:21:19 +00:00
parent bf19f45705
commit 79558cf82d

View File

@ -612,8 +612,7 @@ class mail_hooks
$currentTime = time();
if (!empty($lastRun) && $lastRun>$currentTime-3*60)
{
error_log(__METHOD__.__LINE__." Job should not run too often; we limit this to once every 3 Minutes :". ($currentTime-$lastRun). " Seconds to go!");
//error_log(__METHOD__.__LINE__." Job should not run too often; we limit this to once every 3 Minutes :". ($currentTime-$lastRun). " Seconds to go!");
return true;
}
$accountsToSearchObj = emailadmin_account::search($only_current_user=true, $just_name=true);