Skip to content

Commit

Permalink
fix(logger): Fix logger output name
Browse files Browse the repository at this point in the history
The logger was logging errors as "openstreetmap", likely due to a
copy/paste error.
  • Loading branch information
orangejulius committed May 20, 2019
1 parent 450bd29 commit 9458c7c
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 9458c7c

Please sign in to comment.