function fail2ban_syslog in Fail2ban Firewall Integration 7.2
Same name and namespace in other branches
- 6 fail2ban.module \fail2ban_syslog()
- 7 fail2ban.module \fail2ban_syslog()
The function that does the actual work, writing a log message.
Parameters
$comment: The comment being deleted.
1 call to fail2ban_syslog()
- fail2ban_comment_admin_overview_submit in ./
fail2ban.module - Form submit handler to mass-report and unpublish or delete comments.
File
- ./
fail2ban.module, line 82
Code
function fail2ban_syslog($comment) {
// Load all settings.
$message = variable_get('fail2ban_logstring', 'Submitting address [!address] to the firewall');
// Just watchdog() the message and syslog.module does the rest.
watchdog('fail2ban', $message, array(
'!address' => $comment->hostname,
), WATCHDOG_INFO);
}