summaryrefslogtreecommitdiff
path: root/modules/syslog
diff options
context:
space:
mode:
Diffstat (limited to 'modules/syslog')
-rw-r--r--modules/syslog/syslog.module6
-rw-r--r--modules/syslog/syslog.test5
2 files changed, 7 insertions, 4 deletions
diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module
index 7c7bf40b7..132760626 100644
--- a/modules/syslog/syslog.module
+++ b/modules/syslog/syslog.module
@@ -29,7 +29,7 @@ function syslog_help($path, $arg) {
case 'admin/help#syslog':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
- $output .= '<p>' . t("The Syslog module logs events by sending messages to the logging facility of your web server's operating system. Syslog is an operating system administrative logging tool that provides valuable information for use in system management and security auditing. Most suited to medium and large sites, Syslog provides filtering tools that allow messages to be routed by type and severity. For more information, see the online handbook entry for <a href='@syslog'>Syslog module</a> and PHP's <a href='@php_openlog'>openlog</a> and <a href='@php_syslog'>syslog</a> functions.", array('@syslog' => 'http://drupal.org/handbook/modules/syslog', '@php_openlog' => 'http://www.php.net/manual/function.openlog.php', '@php_syslog' => 'http://www.php.net/manual/function.syslog.php')) . '</p>';
+ $output .= '<p>' . t("The Syslog module logs events by sending messages to the logging facility of your web server's operating system. Syslog is an operating system administrative logging tool that provides valuable information for use in system management and security auditing. Most suited to medium and large sites, Syslog provides filtering tools that allow messages to be routed by type and severity. For more information, see the online handbook entry for <a href='@syslog'>Syslog module</a> and PHP's <a href='@php_openlog'>openlog</a> and <a href='@php_syslog'>syslog</a> functions.", array('@syslog' => 'http://drupal.org/documentation/modules/syslog', '@php_openlog' => 'http://www.php.net/manual/function.openlog.php', '@php_syslog' => 'http://www.php.net/manual/function.syslog.php')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Logging for UNIX, Linux, and Mac OS X') . '</dt>';
@@ -71,7 +71,7 @@ function syslog_form_system_logging_settings_alter(&$form, &$form_state) {
}
/**
- * List all possible syslog facilities for UNIX/Linux.
+ * Lists all possible syslog facilities for UNIX/Linux.
*
* @return array
*/
@@ -109,7 +109,7 @@ function syslog_watchdog(array $log_entry) {
'!ip' => $log_entry['ip'],
'!request_uri' => $log_entry['request_uri'],
'!referer' => $log_entry['referer'],
- '!uid' => $log_entry['user']->uid,
+ '!uid' => $log_entry['uid'],
'!link' => strip_tags($log_entry['link']),
'!message' => strip_tags(!isset($log_entry['variables']) ? $log_entry['message'] : strtr($log_entry['message'], $log_entry['variables'])),
));
diff --git a/modules/syslog/syslog.test b/modules/syslog/syslog.test
index 691fb7dee..1f7ab2ea8 100644
--- a/modules/syslog/syslog.test
+++ b/modules/syslog/syslog.test
@@ -5,6 +5,9 @@
* Tests for syslog.module.
*/
+/**
+ * Tests the Syslog module functionality.
+ */
class SyslogTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
@@ -19,7 +22,7 @@ class SyslogTestCase extends DrupalWebTestCase {
}
/**
- * Test the syslog settings page.
+ * Tests the syslog settings page.
*/
function testSettings() {
$admin_user = $this->drupalCreateUser(array('administer site configuration'));