From 7ec2b1da8cb4bb84b498e2204a3b46b0291e6e81 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 17 Dec 2015 20:30:30 -0800 Subject: [PATCH] fix function name in debug --- src/dns/route53.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dns/route53.js b/src/dns/route53.js index 225fea248..a348e5699 100644 --- a/src/dns/route53.js +++ b/src/dns/route53.js @@ -176,19 +176,19 @@ function del(dnsConfig, zoneName, subdomain, type, values, callback) { var route53 = new AWS.Route53(getDnsCredentials(dnsConfig)); route53.changeResourceRecordSets(params, function(error, result) { if (error && error.message && error.message.indexOf('it was not found') !== -1) { - debug('delSubdomain: resource record set not found.', error); + debug('del: resource record set not found.', error); return callback(new SubdomainError(SubdomainError.NOT_FOUND, new Error(error))); } else if (error && error.code === 'NoSuchHostedZone') { - debug('delSubdomain: hosted zone not found.', error); + debug('del: hosted zone not found.', error); return callback(new SubdomainError(SubdomainError.NOT_FOUND, new Error(error))); } else if (error && error.code === 'PriorRequestNotComplete') { - debug('delSubdomain: resource is still busy', error); + debug('del: resource is still busy', error); return callback(new SubdomainError(SubdomainError.STILL_BUSY, new Error(error))); } else if (error && error.code === 'InvalidChangeBatch') { - debug('delSubdomain: invalid change batch. No such record to be deleted.'); + debug('del: invalid change batch. No such record to be deleted.'); return callback(new SubdomainError(SubdomainError.NOT_FOUND, new Error(error))); } else if (error) { - debug('delSubdomain: error', error); + debug('del: error', error); return callback(new SubdomainError(SubdomainError.EXTERNAL_ERROR, new Error(error))); }