Prepare for deploy test

This commit is contained in:
Thomas FORGIONE
2015-09-29 09:20:07 +02:00
parent a03dc89195
commit 372f86a504
3 changed files with 15 additions and 14 deletions

View File

@@ -73,15 +73,13 @@ Log.mailerror = function(error) {
);
};
if (isDev) {
Log.debug = function(info) {
Log.debug = function(info, force) {
if (isDev || force === true) {
log(
'[DBG] ' + (info !== undefined ? info : ''),
Colors.ORANGE
);
};
} else {
Log.debug = function(){};
}
}
};
module.exports = Log;