Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(logger): Fix logger output name #448

Merged
merged 1 commit into from
May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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