jethrocarr / namedmanager

AGPL web-based DNS management interface in PHP
349 stars 126 forks source link

Add return information from Route53 to allow admins to understand why things fail to sync #54

Open arnvid opened 7 years ago

arnvid commented 7 years ago

Currently running with the following changes to allow us to see why the sync fails.. Since it fails alot.

diff --git a/htdocs/include/application/inc_cloud_route53.php b/htdocs/include/application/inc_cloud_route53.php
index 0eb81d5..dac77cb 100644
--- a/htdocs/include/application/inc_cloud_route53.php
+++ b/htdocs/include/application/inc_cloud_route53.php
@@ -749,6 +749,8 @@ class cloud_route53
                        {
                                log_write("error", "process", "A failure occured whilst trying to submit a batch change from AWS/Route53.");
                                log_write("error", "process", "Failure returned: ". $e->getExceptionCode() ."");
+                               log_write("error", "process", "Exception type: ". $e->getExceptionType() ."");
+                               log_write("error", "process", "Exception Message: ". $e->getMessage() ."");
                                $this->changelog->log_post('server', "An error occured updating domain \"". $this->obj_domain->data["domain_name"] ."\" in Route53");

                                return 0;