Browse Source

change all log labels to 'api'

production_patch_logging
Peter Johnson 8 years ago
parent
commit
acbad4c1da
  1. 2
      controller/place.js
  2. 2
      controller/search.js
  3. 2
      middleware/500.js
  4. 2
      middleware/confidenceScoreFallback.js
  5. 2
      sanitizer/search_fallback.js
  6. 2
      service/mget.js
  7. 2
      service/search.js

2
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 ){

2
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 ){

2
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) {

2
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;

2
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

2
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 ){

2
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 ){

Loading…
Cancel
Save