Skip to content

Commit

Permalink
feat(log): disable suspect-wof-record log
Browse files Browse the repository at this point in the history
This code was logging all output to a file in addition to the console.
This isn't required and can cause permissions issues.
  • Loading branch information
orangejulius committed Sep 12, 2018
1 parent 40b507c commit ad29cb0
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 ad29cb0

Please sign in to comment.