From 74bdf82dbadf4baf5243e0d0fc195b096a1d7621 Mon Sep 17 00:00:00 2001 From: Andy Binder Date: Wed, 26 Jul 2023 22:05:57 +0200 Subject: [PATCH] Update event_guard.php (#6779) --- app/event_guard/resources/service/event_guard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/event_guard/resources/service/event_guard.php b/app/event_guard/resources/service/event_guard.php index bbbc81b373..9c30d98aa7 100644 --- a/app/event_guard/resources/service/event_guard.php +++ b/app/event_guard/resources/service/event_guard.php @@ -198,7 +198,7 @@ unblock($row['ip_address'], $row['filter']); //log the blocked ip address to the syslog - openlog("fusionpbx", LOG_PID | LOG_PERROR); + openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_AUTH); syslog(LOG_WARNING, "fusionpbx: unblocked: [ip_address: ".$row['ip_address'].", filter: ".$row['filter'].", to-user: ".$row['extension'].", to-host: ".$row['hostname'].", line: ".__line__."]"); closelog(); @@ -321,7 +321,7 @@ } //log the blocked ip address to the syslog - openlog("fusionpbx", LOG_PID | LOG_PERROR); + openlog("fusionpbx", LOG_PID | LOG_PERROR, LOG_AUTH); syslog(LOG_WARNING, "fusionpbx: blocked: [ip_address: ".$ip_address.", filter: ".$filter.", to-user: ".$event['to-user'].", to-host: ".$event['to-host'].", line: ".__line__."]"); closelog();