diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 17:31:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 17:31:10 +0000 |
commit | ba13a6e616e4b0e5e7e20d05c13009f5e49d8103 (patch) | |
tree | e1f7302f7a94722adfb4782b430b527f8e948017 /etc | |
parent | 5519481c0dd9d4dd2fde3e0683f3e2c27a95047d (diff) | |
download | pfsense-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')
-rw-r--r-- | etc/inc/filter.inc | 6 |
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() { |