Compare commits

...

1 Commits

Author SHA1 Message Date
Jonathan Gramain 030b6538a8 [test] + logs for location metrics 2018-07-23 18:34:50 -07:00
1 changed files with 4 additions and 0 deletions

View File

@ -995,6 +995,8 @@ class UtapiClient {
service: 's3',
location,
};
log.info('pushing location metric',
Object.assign({}, params, { updateSize }));
this._checkMetricTypes(params);
const action = (updateSize < 0) ? 'decrby' : 'incrby';
const size = (updateSize < 0) ? -updateSize : updateSize;
@ -1008,6 +1010,8 @@ class UtapiClient {
return this._pushLocalCache(params, 'locationStorage', null,
log, callback);
}
log.info('pushed location metric',
Object.assign({}, params, { updateSize }));
return callback();
});
}