aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-15 20:43:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-15 20:43:50 +0000
commitcaf1e50df6fd1a390e8b0f81ecc0851a34ab4bae (patch)
tree09aad469202154c45cb93a308e931a9aed1ebbdc /packages/tinydns
parentdc0852998a9b7dbcbf935fd28d5d12b04c559c91 (diff)
downloadpfsense-packages-caf1e50df6fd1a390e8b0f81ecc0851a34ab4bae.tar.gz
pfsense-packages-caf1e50df6fd1a390e8b0f81ecc0851a34ab4bae.tar.bz2
pfsense-packages-caf1e50df6fd1a390e8b0f81ecc0851a34ab4bae.zip
When a sync error occurs, enable debug mode and sync again to obtain enhanced error messages.
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 6636f411..68401d56 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -422,6 +422,8 @@ function tinydns_do_xmlrpc_sync($sync_to_ip, $password) {
log_error($error);
file_notice("sync_settings", $error, "tinydns Settings Sync", "");
} elseif($resp->faultCode()) {
+ $cli->setDebug(1);
+ $resp = $cli->send($msg, "250");
$error = "An error code was received while attempting tinydns XMLRPC sync with {$url}:{$port} - Code " . $resp->faultCode() . ": " . $resp->faultString();
log_error($error);
file_notice("sync_settings", $error, "tinydns Settings Sync", "");