From 1451e9038ea3a778f207aa81e87a2218e4c64e9e Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 2 Dec 2016 17:38:40 +0100 Subject: [PATCH] change all log labels to 'api' --- controller/place.js | 2 +- controller/search.js | 2 +- middleware/500.js | 2 +- middleware/confidenceScoreFallback.js | 2 +- sanitizer/search_fallback.js | 2 +- service/mget.js | 2 +- service/search.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controller/place.js b/controller/place.js index 924292b6..ebf9df18 100644 --- a/controller/place.js +++ b/controller/place.js @@ -1,5 +1,5 @@ var service = { mget: require('../service/mget') }; -var logger = require('pelias-logger').get('api:controller:place'); +var logger = require('pelias-logger').get('api'); function setup( config, backend ){ diff --git a/controller/search.js b/controller/search.js index 39183fdf..3ac135d4 100644 --- a/controller/search.js +++ b/controller/search.js @@ -1,7 +1,7 @@ var _ = require('lodash'); var service = { search: require('../service/search') }; -var logger = require('pelias-logger').get('api:controller:search'); +var logger = require('pelias-logger').get('api'); var logging = require( '../helper/logging' ); function setup( config, backend, query ){ diff --git a/middleware/500.js b/middleware/500.js index 92acea60..17908729 100644 --- a/middleware/500.js +++ b/middleware/500.js @@ -1,4 +1,4 @@ -var logger = require( 'pelias-logger' ).get( 'middleware-500' ); +var logger = require( 'pelias-logger' ).get( 'api' ); // handle application errors function middleware(err, req, res, next) { diff --git a/middleware/confidenceScoreFallback.js b/middleware/confidenceScoreFallback.js index d208d02f..65606497 100644 --- a/middleware/confidenceScoreFallback.js +++ b/middleware/confidenceScoreFallback.js @@ -10,7 +10,7 @@ */ var check = require('check-types'); -var logger = require('pelias-logger').get('api-confidence'); +var logger = require('pelias-logger').get('api'); function setup() { return computeScores; diff --git a/sanitizer/search_fallback.js b/sanitizer/search_fallback.js index 07360fa6..d483d4e3 100644 --- a/sanitizer/search_fallback.js +++ b/sanitizer/search_fallback.js @@ -4,7 +4,7 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'), }; var sanitize = function(req, cb) { sanitizeAll(req, sanitizers, cb); }; -var logger = require('pelias-logger').get('api:controller:search_fallback'); +var logger = require('pelias-logger').get('api'); var logging = require( '../helper/logging' ); // middleware diff --git a/service/mget.js b/service/mget.js index 529d0fc1..d021efd1 100644 --- a/service/mget.js +++ b/service/mget.js @@ -11,7 +11,7 @@ **/ -var peliasLogger = require( 'pelias-logger' ).get( 'service/mget' ); +var peliasLogger = require( 'pelias-logger' ).get( 'api' ); function service( backend, query, cb ){ diff --git a/service/search.js b/service/search.js index 780da2ae..2d9c9adf 100644 --- a/service/search.js +++ b/service/search.js @@ -5,7 +5,7 @@ **/ -var peliasLogger = require( 'pelias-logger' ).get( 'service/search' ); +var peliasLogger = require( 'pelias-logger' ).get( 'api' ); function service( backend, cmd, cb ){