Skip to content

Commit

Permalink
Merge pull request #230 from pelias/disable-suspect-wof-record-log
Browse files Browse the repository at this point in the history
feat(log): disable suspect-wof-record log
  • Loading branch information
orangejulius committed Sep 12, 2018
2 parents 40b507c + ad29cb0 commit a0917b6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/lookupStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,9 @@

const _ = require('lodash');
const parallelTransform = require('parallel-transform');
const peliasLogger = require( 'pelias-logger' );
const logger = require( 'pelias-logger' ).get( 'wof-admin-lookup' );
const getAdminLayers = require( './getAdminLayers' );

//defaults to nowhere
const optsArg = {
transports: []
};
//only prints to suspect records log if flag is set
optsArg.transports.push(new peliasLogger.winston.transports.File( {
filename: 'suspect_wof_records.log',
timestamp: false
}));

const logger = peliasLogger.get( 'wof-admin-lookup', optsArg );

function hasAnyMultiples(result) {
return Object.keys(result).some((element) => {
return result[element].length > 1;
Expand Down

0 comments on commit a0917b6

Please sign in to comment.