summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-13 17:31:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-13 17:31:10 +0000
commitba13a6e616e4b0e5e7e20d05c13009f5e49d8103 (patch)
treee1f7302f7a94722adfb4782b430b527f8e948017 /etc/inc
parent5519481c0dd9d4dd2fde3e0683f3e2c27a95047d (diff)
downloadpfsense-ba13a6e616e4b0e5e7e20d05c13009f5e49d8103.zip
pfsense-ba13a6e616e4b0e5e7e20d05c13009f5e49d8103.tar.gz
If the response from sync is false then log the error. Otherwise log that the action went okay.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 188dc69..3f97e48 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2361,7 +2361,11 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
$cli->setCredentials('admin', $password);
$resp = $cli->send($msg);
- log_error("end synchronize XML configuration data to $url on port $port");
+ if($resp == false) {
+ log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$resp}");
+ } else {
+ log_error("end synchronize XML configuration data to {$url} on port {$port}");
+ }
}
function carp_sync_client() {
OpenPOWER on IntegriCloud