Browse Source

Return an object from access_log module

This allows adding more methods later.
pull/542/head
Julian Simioni 9 years ago committed by Julian Simioni
parent
commit
57d1c8be1e
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 2
      app.js
  2. 4
      middleware/access_log.js

2
app.js

@ -5,7 +5,7 @@ var peliasConfig = require( 'pelias-config' ).generate().api;
if( peliasConfig.accessLog ){
app.use( require( './middleware/access_log' )( peliasConfig.accessLog ) );
app.use( require( './middleware/access_log' ).createAccessLogger( peliasConfig.accessLog ) );
}
/** ----------------------- pre-processing-middleware ----------------------- **/

4
middleware/access_log.js

@ -17,4 +17,6 @@ function createAccessLogger( logFormat ){
});
}
module.exports = createAccessLogger;
module.exports = {
createAccessLogger: createAccessLogger
};

Loading…
Cancel
Save