drush pm-info syslog
Extension : syslog
Project : drupal
Type : module
Title : Syslog
Description : Logs and records system events to syslog.
Version : 7.26
Date : 2014-01-15
Package : Core
Core : 7.x
PHP : 5.2.4
Status : enabled
Path : modules/syslog
Schema version : module has no schema
Files : syslog.test
Requires : none
Required by : none
Permissions : none
Configure : admin/config/development/logging
drush en syslog
The following extensions will be enabled: syslog
Do you really want to continue? (y/n): y
openlog() expects parameter 3 to be long, string given syslog.module:103 [warning]
syslog was enabled successfully.
cat syslog.module
if (!$log_init) {
$log_init = TRUE;
$default_facility = defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER;
103 openlog(variable_get('syslog_identity', 'drupal'), LOG_NDELAY, variable_get('syslog_facility', $default_facility));
}
Comments
Comment #1
ano.nimmus commentedAnyone?
Comment #2
vm commentedhttps://drupal.org/comment/8504411#comment-8504411 responded to in the forum post. I can't reproduce the issue on a new install. User has been asked to test on a new install to ensure a core bug.
Comment #3
ano.nimmus commentedThis was reported on my production install -- with a number of contrib modules.
I can reproduce this on both the prod instance with contrib modules disabled, as well as a vanilla install with no contrib modules. I've tried vanilla installs on both this box, and another -- but they're virtually identically configured.
Comment #4
vm commentedThe only difference I can see between my install and your own is the version of PHP. I'm running 5.4.12. I didn't test on the public server but on localhost.
Some more information about the environment you are running in may aid. shared hosting?
https://drupal.org/documentation/modules/syslog = docs for the module in question though I don't know that they will aid.
Comment #5
ano.nimmus commentedhere,
no, not shared hosting -- standalone box.
Comment #6
vm commentedI'm not in a position to test on PHP 5.6.0-dev
Comment #7
longwaveWhat is the value of the variable "syslog_facility"? This should be one of the PHP-defined LOG_LOCALn constants, but somehow it seems it is a string on your setup.
Comment #8
dcam commentedClosing old issues.
If you're still experiencing this problem then please check the value of the syslog_facility variable as mentioned in #7. If you have Drush installed then you can use
drush vget syslog_facilityto see the value. If not, I think the Variable module will allow you to inspect variable values via an admin page.