diff options
author | Colin Smith <colin@pfsense.org> | 2005-09-13 17:39:57 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-09-13 17:39:57 +0000 |
commit | afe07e8a24734e3023fe272e3f5a18fc6920ac70 (patch) | |
tree | 619da181654884e50a65e7221c6a81095c906337 /etc | |
parent | 968e0642e4efcc3cca9f3522a127ea7992a8e917 (diff) | |
download | pfsense-afe07e8a24734e3023fe272e3f5a18fc6920ac70.zip pfsense-afe07e8a24734e3023fe272e3f5a18fc6920ac70.tar.gz |
Also check for faultcodes.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 91617dd..d0af950 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2356,9 +2356,11 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen $cli->setCredentials('admin', $password); $resp = $cli->send($msg); if(!$resp) { - log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$cli->errstr}"); + log_error("A communication error occured while syncing configuration data with {$url}:{$port} - {$cli->errstr}"); + } elseif($resp->faultCode()) { + log_error("An error code was received while syncing configuration data with {$url}:{$port} - Code {$resp->faultCode()}: {$resp->faultString()}"); } else { - log_error("end synchronize XML configuration data to {$url} on port {$port}"); + log_error("Configuration data was successfully synced to {$url}:{$port}"); } } |