summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-11 21:23:06 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-11 21:23:06 +0000
commit052a1da533a8b220e05f3105304184bddf893a8a (patch)
treef6f47ef7594765afc9c905821e1d02010379b74a
parente603247301989dc1885e4457f43a7ef451a01be3 (diff)
downloadbrdo-052a1da533a8b220e05f3105304184bddf893a8a.tar.gz
brdo-052a1da533a8b220e05f3105304184bddf893a8a.tar.bz2
- Patch #739450 by mr.baileys: rename WATCHDOG_EMERG to WATCHDOG_EMERGENCY.
-rw-r--r--includes/bootstrap.inc2
-rw-r--r--includes/common.inc16
-rw-r--r--modules/dblog/dblog.admin.inc32
-rw-r--r--modules/dblog/dblog.test4
-rw-r--r--modules/system/system.api.php18
5 files changed, 36 insertions, 36 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 127e322e0..8a8e889f1 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -64,7 +64,7 @@ define('CACHE_NORMAL', 1);
* @see watchdog()
* @see watchdog_severity_levels()
*/
-define('WATCHDOG_EMERG', 0);
+define('WATCHDOG_EMERGENCY', 0);
/**
* Log message severity -- Alert: action must be taken immediately.
diff --git a/includes/common.inc b/includes/common.inc
index 2c2b7bed2..6a108a289 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -5992,14 +5992,14 @@ function drupal_parse_info_format($data) {
*/
function watchdog_severity_levels() {
return array(
- WATCHDOG_EMERG => t('emergency'),
- WATCHDOG_ALERT => t('alert'),
- WATCHDOG_CRITICAL => t('critical'),
- WATCHDOG_ERROR => t('error'),
- WATCHDOG_WARNING => t('warning'),
- WATCHDOG_NOTICE => t('notice'),
- WATCHDOG_INFO => t('info'),
- WATCHDOG_DEBUG => t('debug'),
+ WATCHDOG_EMERGENCY => t('emergency'),
+ WATCHDOG_ALERT => t('alert'),
+ WATCHDOG_CRITICAL => t('critical'),
+ WATCHDOG_ERROR => t('error'),
+ WATCHDOG_WARNING => t('warning'),
+ WATCHDOG_NOTICE => t('notice'),
+ WATCHDOG_INFO => t('info'),
+ WATCHDOG_DEBUG => t('debug'),
);
}
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index 0bee41955..181ed7468 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -13,24 +13,24 @@ function dblog_overview() {
$filter = dblog_build_filter_query();
$rows = array();
$icons = array(
- WATCHDOG_DEBUG => '',
- WATCHDOG_INFO => '',
- WATCHDOG_NOTICE => '',
- 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_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_EMERG => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))),
+ WATCHDOG_DEBUG => '',
+ WATCHDOG_INFO => '',
+ WATCHDOG_NOTICE => '',
+ 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_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_EMERGENCY => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))),
);
$classes = array(
- WATCHDOG_DEBUG => 'dblog-debug',
- WATCHDOG_INFO => 'dblog-info',
- WATCHDOG_NOTICE => 'dblog-notice',
- WATCHDOG_WARNING => 'dblog-warning',
- WATCHDOG_ERROR => 'dblog-error',
- WATCHDOG_CRITICAL => 'dblog-critical',
- WATCHDOG_ALERT => 'dblog-alert',
- WATCHDOG_EMERG => 'dblog-emerg',
+ WATCHDOG_DEBUG => 'dblog-debug',
+ WATCHDOG_INFO => 'dblog-info',
+ WATCHDOG_NOTICE => 'dblog-notice',
+ WATCHDOG_WARNING => 'dblog-warning',
+ WATCHDOG_ERROR => 'dblog-error',
+ WATCHDOG_CRITICAL => 'dblog-critical',
+ WATCHDOG_ALERT => 'dblog-alert',
+ WATCHDOG_EMERGENCY => 'dblog-emerg',
);
$build['dblog_filter_form'] = drupal_get_form('dblog_filter_form');
diff --git a/modules/dblog/dblog.test b/modules/dblog/dblog.test
index 585ae3440..5da5abf49 100644
--- a/modules/dblog/dblog.test
+++ b/modules/dblog/dblog.test
@@ -390,7 +390,7 @@ class DBLogTestCase extends DrupalWebTestCase {
$types = array();
for ($i = 0; $i < 3; $i++) {
$type_names[] = $type_name = $this->randomName();
- $severity = WATCHDOG_EMERG;
+ $severity = WATCHDOG_EMERGENCY;
for ($j = 0; $j < 3; $j++) {
$types[] = $type = array(
'count' => mt_rand(1, 5),
@@ -506,7 +506,7 @@ class DBLogTestCase extends DrupalWebTestCase {
'dblog-error' => WATCHDOG_ERROR,
'dblog-critical' => WATCHDOG_CRITICAL,
'dblog-alert' => WATCHDOG_ALERT,
- 'dblog-emerg' => WATCHDOG_EMERG,
+ 'dblog-emerg' => WATCHDOG_EMERGENCY,
);
// Find the class that contains the severity.
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index a6fc4032f..936ca9079 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -1312,7 +1312,7 @@ function hook_xmlrpc_alter(&$methods) {
* - ip: The IP address where the request for the page came from.
* - 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
- * WATCHDOG_EMERG Emergency: system is unusable
+ * WATCHDOG_EMERGENCY Emergency: system is unusable
* WATCHDOG_ALERT Alert: action must be taken immediately
* WATCHDOG_CRITICAL Critical: critical conditions
* WATCHDOG_ERROR Error: error conditions
@@ -1327,14 +1327,14 @@ function hook_watchdog(array $log_entry) {
global $base_url, $language;
$severity_list = array(
- WATCHDOG_EMERG => t('Emergency'),
- WATCHDOG_ALERT => t('Alert'),
- WATCHDOG_CRITICAL => t('Critical'),
- WATCHDOG_ERROR => t('Error'),
- WATCHDOG_WARNING => t('Warning'),
- WATCHDOG_NOTICE => t('Notice'),
- WATCHDOG_INFO => t('Info'),
- WATCHDOG_DEBUG => t('Debug'),
+ WATCHDOG_EMERGENCY => t('Emergency'),
+ WATCHDOG_ALERT => t('Alert'),
+ WATCHDOG_CRITICAL => t('Critical'),
+ WATCHDOG_ERROR => t('Error'),
+ WATCHDOG_WARNING => t('Warning'),
+ WATCHDOG_NOTICE => t('Notice'),
+ WATCHDOG_INFO => t('Info'),
+ WATCHDOG_DEBUG => t('Debug'),
);
$to = 'someone@example.com';