Authored by 姜枫

add empty logs

... ... @@ -32,6 +32,10 @@ class ApiCache {
this.memcached.items( ( err, result ) => {
if( err ) console.error( err );
if (result.length === 0) {
this._log('empty items')
}
// for each server...
result.forEach(itemSet => {
... ... @@ -39,6 +43,10 @@ class ApiCache {
keys.pop(); // we don't need the "server" key, but the other indicate the slab id's
var len = keys.length;
if (keys.length === 0) {
this._log('empty item set');
}
keys.forEach(stats => {
... ...
... ... @@ -158,7 +158,7 @@ const p = {
projectId: pid
}).sort({
buildTime: -1
}).exec();
}).limit(30).exec();
buildings.forEach(b => {
b.updatedAt = moment(b.updatedAt).format('YYYY-MM-DD HH:mm:ss');
});
... ...