Permalink
Browse files

add debug option to display uploaded images

  • Loading branch information...
1 parent 33b6466 commit 22a03f3c21c3bcf99ab9cf631b23e6dc3d42fd0c @madhums committed Aug 25, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/imager.js
View
@@ -22,8 +22,6 @@ var Imager = exports = module.exports = function Imager(config, storage) {
this.config = config
this.storage = storage
this.uploadedFiles = []
-
- // if (storage === 'Rackspace') this.setupCloudfiles()
}
@@ -109,7 +107,7 @@ Imager.prototype.startUpload = function (file, filename, variant, iteratorCallba
f = f.indexOf(',') === -1 ? f : f.slice(0, f.length - 1)
self.uploadedFiles.push(f)
- console.log(self.uploadedFiles)
+ if (self.config.debug) console.log(self.uploadedFiles)
iteratorCallback(err)
})
}

0 comments on commit 22a03f3

Please sign in to comment.