Commit 052a1da5 authored by Dries's avatar Dries

- Patch #739450 by mr.baileys: rename WATCHDOG_EMERG to WATCHDOG_EMERGENCY.

parent e6032473
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
* @see watchdog() * @see watchdog()
* @see watchdog_severity_levels() * @see watchdog_severity_levels()
*/ */
define('WATCHDOG_EMERG', 0); define('WATCHDOG_EMERGENCY', 0);
/** /**
* Log message severity -- Alert: action must be taken immediately. * Log message severity -- Alert: action must be taken immediately.
......
...@@ -5992,14 +5992,14 @@ function drupal_parse_info_format($data) { ...@@ -5992,14 +5992,14 @@ function drupal_parse_info_format($data) {
*/ */
function watchdog_severity_levels() { function watchdog_severity_levels() {
return array( return array(
WATCHDOG_EMERG => t('emergency'), WATCHDOG_EMERGENCY => t('emergency'),
WATCHDOG_ALERT => t('alert'), WATCHDOG_ALERT => t('alert'),
WATCHDOG_CRITICAL => t('critical'), WATCHDOG_CRITICAL => t('critical'),
WATCHDOG_ERROR => t('error'), WATCHDOG_ERROR => t('error'),
WATCHDOG_WARNING => t('warning'), WATCHDOG_WARNING => t('warning'),
WATCHDOG_NOTICE => t('notice'), WATCHDOG_NOTICE => t('notice'),
WATCHDOG_INFO => t('info'), WATCHDOG_INFO => t('info'),
WATCHDOG_DEBUG => t('debug'), WATCHDOG_DEBUG => t('debug'),
); );
} }
......
...@@ -13,24 +13,24 @@ function dblog_overview() { ...@@ -13,24 +13,24 @@ function dblog_overview() {
$filter = dblog_build_filter_query(); $filter = dblog_build_filter_query();
$rows = array(); $rows = array();
$icons = array( $icons = array(
WATCHDOG_DEBUG => '', WATCHDOG_DEBUG => '',
WATCHDOG_INFO => '', WATCHDOG_INFO => '',
WATCHDOG_NOTICE => '', WATCHDOG_NOTICE => '',
WATCHDOG_WARNING => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('warning'), 'title' => t('warning'))), WATCHDOG_WARNING => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('warning'), 'title' => t('warning'))),
WATCHDOG_ERROR => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('error'), 'title' => t('error'))), WATCHDOG_ERROR => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('error'), 'title' => t('error'))),
WATCHDOG_CRITICAL => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('critical'), 'title' => t('critical'))), WATCHDOG_CRITICAL => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('critical'), 'title' => t('critical'))),
WATCHDOG_ALERT => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('alert'), 'title' => t('alert'))), WATCHDOG_ALERT => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('alert'), 'title' => t('alert'))),
WATCHDOG_EMERG => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))), WATCHDOG_EMERGENCY => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))),
); );
$classes = array( $classes = array(
WATCHDOG_DEBUG => 'dblog-debug', WATCHDOG_DEBUG => 'dblog-debug',
WATCHDOG_INFO => 'dblog-info', WATCHDOG_INFO => 'dblog-info',
WATCHDOG_NOTICE => 'dblog-notice', WATCHDOG_NOTICE => 'dblog-notice',
WATCHDOG_WARNING => 'dblog-warning', WATCHDOG_WARNING => 'dblog-warning',
WATCHDOG_ERROR => 'dblog-error', WATCHDOG_ERROR => 'dblog-error',
WATCHDOG_CRITICAL => 'dblog-critical', WATCHDOG_CRITICAL => 'dblog-critical',
WATCHDOG_ALERT => 'dblog-alert', WATCHDOG_ALERT => 'dblog-alert',
WATCHDOG_EMERG => 'dblog-emerg', WATCHDOG_EMERGENCY => 'dblog-emerg',
); );
$build['dblog_filter_form'] = drupal_get_form('dblog_filter_form'); $build['dblog_filter_form'] = drupal_get_form('dblog_filter_form');
......
...@@ -390,7 +390,7 @@ class DBLogTestCase extends DrupalWebTestCase { ...@@ -390,7 +390,7 @@ class DBLogTestCase extends DrupalWebTestCase {
$types = array(); $types = array();
for ($i = 0; $i < 3; $i++) { for ($i = 0; $i < 3; $i++) {
$type_names[] = $type_name = $this->randomName(); $type_names[] = $type_name = $this->randomName();
$severity = WATCHDOG_EMERG; $severity = WATCHDOG_EMERGENCY;
for ($j = 0; $j < 3; $j++) { for ($j = 0; $j < 3; $j++) {
$types[] = $type = array( $types[] = $type = array(
'count' => mt_rand(1, 5), 'count' => mt_rand(1, 5),
...@@ -506,7 +506,7 @@ class DBLogTestCase extends DrupalWebTestCase { ...@@ -506,7 +506,7 @@ class DBLogTestCase extends DrupalWebTestCase {
'dblog-error' => WATCHDOG_ERROR, 'dblog-error' => WATCHDOG_ERROR,
'dblog-critical' => WATCHDOG_CRITICAL, 'dblog-critical' => WATCHDOG_CRITICAL,
'dblog-alert' => WATCHDOG_ALERT, 'dblog-alert' => WATCHDOG_ALERT,
'dblog-emerg' => WATCHDOG_EMERG, 'dblog-emerg' => WATCHDOG_EMERGENCY,
); );
// Find the class that contains the severity. // Find the class that contains the severity.
......
...@@ -1312,7 +1312,7 @@ function hook_xmlrpc_alter(&$methods) { ...@@ -1312,7 +1312,7 @@ function hook_xmlrpc_alter(&$methods) {
* - ip: The IP address where the request for the page came from. * - ip: The IP address where the request for the page came from.
* - timestamp: The UNIX timestamp of the date/time the event occurred * - timestamp: The UNIX timestamp of the date/time the event occurred
* - severity: One of the following values as defined in RFC 3164 http://www.faqs.org/rfcs/rfc3164.html * - severity: One of the following values as defined in RFC 3164 http://www.faqs.org/rfcs/rfc3164.html
* WATCHDOG_EMERG Emergency: system is unusable * WATCHDOG_EMERGENCY Emergency: system is unusable
* WATCHDOG_ALERT Alert: action must be taken immediately * WATCHDOG_ALERT Alert: action must be taken immediately
* WATCHDOG_CRITICAL Critical: critical conditions * WATCHDOG_CRITICAL Critical: critical conditions
* WATCHDOG_ERROR Error: error conditions * WATCHDOG_ERROR Error: error conditions
...@@ -1327,14 +1327,14 @@ function hook_watchdog(array $log_entry) { ...@@ -1327,14 +1327,14 @@ function hook_watchdog(array $log_entry) {
global $base_url, $language; global $base_url, $language;
$severity_list = array( $severity_list = array(
WATCHDOG_EMERG => t('Emergency'), WATCHDOG_EMERGENCY => t('Emergency'),
WATCHDOG_ALERT => t('Alert'), WATCHDOG_ALERT => t('Alert'),
WATCHDOG_CRITICAL => t('Critical'), WATCHDOG_CRITICAL => t('Critical'),
WATCHDOG_ERROR => t('Error'), WATCHDOG_ERROR => t('Error'),
WATCHDOG_WARNING => t('Warning'), WATCHDOG_WARNING => t('Warning'),
WATCHDOG_NOTICE => t('Notice'), WATCHDOG_NOTICE => t('Notice'),
WATCHDOG_INFO => t('Info'), WATCHDOG_INFO => t('Info'),
WATCHDOG_DEBUG => t('Debug'), WATCHDOG_DEBUG => t('Debug'),
); );
$to = 'someone@example.com'; $to = 'someone@example.com';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment