Browse Source

Remove verbose Elasticsearch log lines

pull/1220/head
Julian Simioni 6 years ago
parent
commit
080cd6854f
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 6
      service/mget.js
  2. 6
      service/search.js

6
service/mget.js

@ -23,12 +23,6 @@ function service( esclient, query, cb ){
// query elasticsearch
esclient.mget( cmd, function( err, data ){
// log total ms elasticsearch reported the query took to execute
if( data && data.took ){
logger.verbose( 'time elasticsearch reported:', data.took / 1000 );
}
// handle elasticsearch errors
if( err ){
logger.error( `elasticsearch error ${err}`);

6
service/search.js

@ -11,12 +11,6 @@ function service( esclient, cmd, cb ){
// query elasticsearch
const startTime = new Date();
esclient.search( cmd, function( err, data ){
// log total ms elasticsearch reported the query took to execute
if( data && data.took ){
logger.verbose( 'time elasticsearch reported:', data.took / 1000 );
}
if (data) {
data.response_time = new Date() - startTime;
}

Loading…
Cancel
Save