Skip to content

Commit

Permalink
Merge pull request #448 from pelias/fix-logger-output
Browse files Browse the repository at this point in the history
fix(logger): Fix logger output name
  • Loading branch information
orangejulius authored May 20, 2019
2 parents 450bd29 + 9458c7c commit 8a382e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/peliasDocGenerators.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const through2 = require('through2');
const _ = require('lodash');
const iso3166 = require('iso3166-1');
const log = require('pelias-logger').get('openstreetmap');
const logger = require('pelias-logger').get('whosonfirst');

const Document = require('pelias-model').Document;

Expand Down Expand Up @@ -160,8 +160,8 @@ module.exports.create = function(hierarchy_finder) {
}
}
catch (e) {
log.error(`doc generator error: ${e.message}`);
log.error(JSON.stringify(record, null, 2));
logger.error(`doc generator error: ${e.message}`);
logger.error(JSON.stringify(record, null, 2));
}

next();
Expand Down

0 comments on commit 8a382e6

Please sign in to comment.