moved debugs 1 level up increased key limit to 100

This commit is contained in:
barisusakli
2014-09-06 20:47:20 -04:00
parent 57e204df8e
commit fe58ea55d4
3 changed files with 15 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ helpers.toMap = function(data) {
map[data[i]._key] = data[i];
}
return map;
}
};
helpers.fieldToString = function(field) {
if(field === null || field === undefined) {
@@ -34,16 +34,6 @@ helpers.valueToString = function(value) {
helpers.noop = function() {};
helpers.checkKeys = function(keys) {
if (!Array.isArray(keys)) {
var e = new Error('invalid keys');
winston.warn('[INVALID_KEYS] ', e.stack);
return;
}
if (keys.length > 50) {
var e = new Error('too many keys');
winston.warn('[TOO_MANY_KEYS] ' + keys.length + ' ' + keys[0] + ' ' + keys[keys.length - 1] + '\n', e.stack);
}
}
helpers.KEY_LIMIT = 100;
module.exports = helpers;