Permalink
Browse files

too much of the logging; especially for cache values, we dont really …

…need it
  • Loading branch information...
1 parent f134bd2 commit b47a256628577fcc00e99cd3b411a1a609560ec0 Alexey Prohorenko committed Apr 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/managers/cache-redis.js
@@ -19,7 +19,7 @@ CacheRedis.prototype.putItem = function(item, callback) {
var itemId = item[ item.getEntityIndex() ];
var cacheKey = item.getEntityName() + ':' + itemId;
var cacheValue = JSON.stringify(item || {});
- this.log('cache putItem(): key = ' + cacheKey + ' value = ' + cacheValue);
+ this.log('cache putItem(): key = ' + cacheKey + ' value = ...');
this.connection.multi()
.set(cacheKey, cacheValue)
.expire(cacheKey, item.getEntityExpiration() || that.expireSeconds)
@@ -39,7 +39,7 @@ CacheRedis.prototype.putItemByClass = function(itemClass, item, callback) {
var itemId = item[ itemClass.entityIndex ];
var cacheKey = itemClass.entityName + ':' + itemId;
var cacheValue = JSON.stringify(item || {});
- this.log('cache putItemByClass(): key = ' + cacheKey + ' value = ' + cacheValue);
+ this.log('cache putItemByClass(): key = ' + cacheKey + ' value = ...');
this.connection.multi()
.set(cacheKey, cacheValue)
.expire(cacheKey, itemClass.entityExpiration || that.expireSeconds)
@@ -88,7 +88,7 @@ CacheRedis.prototype.putItems = function(itemClass, items, callback) {
var that = this;
var cacheKey = itemClass.entityName + ':*';
var cacheValue = JSON.stringify(items || {});
- this.log('cache putItems(): key = ' + cacheKey+ ' value = ' + cacheValue);
+ this.log('cache putItems(): key = ' + cacheKey+ ' value = ...');
this.connection.multi()
.set(cacheKey, cacheValue)
.expire(cacheKey, itemClass.entityExpiration || that.expireSeconds)

0 comments on commit b47a256

Please sign in to comment.