add option to enable console.logs

This commit is contained in:
Matias Alejo Garcia 2014-04-15 14:28:49 -03:00
commit 8cf91d027e
6 changed files with 33 additions and 35 deletions

View file

@ -5,7 +5,7 @@ var config = {
network: {
apiKey: 'lwjd5qra8257b9',
maxPeers: 3,
debug: 3,
debug: 0,
},
wallet: {
requiredCopayers: 2,
@ -15,4 +15,10 @@ var config = {
host: 'localhost',
port: 3001
},
verbose: 0,
};
var log = function () {
if (config.verbose) console.log(arguments);
}