appdb/ cron/cleanup.php include/error_log.php
WineHQ
wineowner at wine.codeweavers.com
Fri Jun 15 22:35:05 CDT 2007
ChangeSet ID: 31209
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/06/15 22:35:05
Modified files:
cron : cleanup.php
include : error_log.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
Fix subject of database error log email sent during cron maintenance
Patch: http://cvs.winehq.org/patch.py?id=31209
Old revision New revision Changes Path
1.42 1.43 +2 -1 appdb/cron/cleanup.php
1.3 1.4 +2 -2 appdb/include/error_log.php
Index: appdb/cron/cleanup.php
diff -u -p appdb/cron/cleanup.php:1.42 appdb/cron/cleanup.php:1.43
--- appdb/cron/cleanup.php:1.42 16 Jun 2007 3:35: 5 -0000
+++ appdb/cron/cleanup.php 16 Jun 2007 3:35: 5 -0000
@@ -251,9 +251,10 @@ function orphanSessionListCheck()
$hResult = query_parameters($sQuery, SESSION_DAYS_TO_EXPIRE + 2);
}
+// report the database error log entries to the mailing list
function reportErrorLogEntries()
{
- error_log::mail_admins_error_log();
+ error_log::mail_admins_error_log($sEmailSubject);
error_log::flush();
}
Index: appdb/include/error_log.php
diff -u -p appdb/include/error_log.php:1.3 appdb/include/error_log.php:1.4
--- appdb/include/error_log.php:1.3 16 Jun 2007 3:35: 5 -0000
+++ appdb/include/error_log.php 16 Jun 2007 3:35: 5 -0000
@@ -60,9 +60,9 @@ class error_log
else return false;
}
- function mail_admins_error_log()
+ function mail_admins_error_log($sSubject = "")
{
- $sSubject = "Appdb error log\r\n";
+ $sSubject .= "Database Error log\r\n";
$sEmail = User::get_notify_email_address_list(null, null); /* get list admins */
$sQuery = "SELECT * from error_log WHERE deleted='0' ORDER BY submitTime";
More information about the wine-cvs
mailing list