Speech as a package #416
3 changed files with 4 additions and 4204 deletions
4204
index.js
4204
index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
const logger = require('winston');
|
||||
|
||||
const requestLogger = (req, res, next) => { // custom logging middleware to log all incoming http requests
|
||||
logger.verbose(`Request on ${req.originalUrl} from ${req.ip}`);
|
||||
logger.debug(`Request on ${req.originalUrl} from ${req.ip}`);
|
||||
next();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue