Add another line of debug output to the cleanup script to see how many rows we retrieved

This commit is contained in:
Chris Morgan
2005-10-09 15:44:09 +00:00
committed by WineHQ
parent 2a9c77c0b2
commit d4740cf030

View File

@@ -75,6 +75,7 @@ function unwarnedAndInactiveSince($iMonths)
notifyAdminsOfProgress("in unwarnedAndInactiveSince ".$sQuery);
$hResult = query_appdb($sQuery);
notifyAdminsOfProgress("in unwarnedAndInactiveSince after $hResult");
notifyAdminsOfProgress("retrieved ".mysql_num_rows($hResult)." rows");
return $hResult;
}
@@ -134,8 +135,8 @@ function notifyAdminsOfCleanupExecution($usersWarned, $usersDeleted, $usersWithD
/* events of the appdb */
function notifyAdminsOfProgress($sMsg="")
{
$sSubject = "Cleanup script in the middle\r\n";
$sMsg .= "Appdb cleanup cron script is in between processing warnings and processing deletions.\r\n";
$sSubject = "Cleanup script progress\r\n";
$sMsg .= "Appdb cleanup cron script is processing warnings and processing deletions.\r\n";
$sEmail = "cmorgan@alum.wpi.edu";
if($sEmail)
mail_appdb($sEmail, $sSubject, $sMsg);