diff --git a/index.js b/index.js index 7ea178b..b0312e7 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,12 @@ const s3 = new AWS.S3({ apiVersion: '2006-03-01' }); module.exports.create = (createOptions) => { const options = Object.assign({}, defaultOptions, createOptions); + if (!options.debug) { + console = console || {}; + console.log = () => { }; + console.error = () => { }; + } + AWS.config.update({ region: options.bucketRegion , credentials: new AWS.Credentials({