From a687b7da267ce4bd16e38a98327369f83fc2cd6f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 6 Dec 2021 13:37:14 -0800 Subject: [PATCH] netcup: remove debugs flooding the logs --- src/dns/netcup.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/dns/netcup.js b/src/dns/netcup.js index 3cebcdf76..4d916ea96 100644 --- a/src/dns/netcup.js +++ b/src/dns/netcup.js @@ -79,8 +79,6 @@ function getAllRecords(dnsConfig, apiSessionId, zoneName, callback) { if (error && !error.response) return callback(new BoxError(BoxError.NETWORK_ERROR, error.message)); if (result.statusCode !== 200) return callback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result))); - debug('getAllRecords:', JSON.stringify(result.body.responsedata.dnsrecords || [])); - callback(null, result.body.responsedata.dnsrecords || []); }); } @@ -139,15 +137,11 @@ function upsert(domainObject, location, type, values, callback) { } }; - debug('upserting', JSON.stringify(data)); - superagent.post(API_ENDPOINT).send(data).end(function (error, result) { if (error && !error.response) return callback(new BoxError(BoxError.NETWORK_ERROR, error.message)); if (result.statusCode !== 200) return callback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result))); if (result.body.statuscode !== 2000) return callback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result))); - debug('upsert:', result.body); - callback(null); }); }); @@ -232,8 +226,6 @@ function del(domainObject, location, type, values, callback) { if (result.statusCode !== 200) return callback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result))); if (result.body.statuscode !== 2000) return callback(new BoxError(BoxError.EXTERNAL_ERROR, formatError(result))); - debug('del:', result.body.responsedata); - callback(null); }); });