From caf1e50df6fd1a390e8b0f81ecc0851a34ab4bae Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 15 Feb 2007 20:43:50 +0000 Subject: When a sync error occurs, enable debug mode and sync again to obtain enhanced error messages. --- packages/tinydns/tinydns.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/tinydns') 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", ""); -- cgit v1.2.3