| @@ -1,27 +1,8 @@ | |||
| const logger = require("../logging/loggerWinston") | |||
| const requestLogging = async (req, res, next) => { | |||
| res.header("Content-Type", 'application/json'); | |||
| // TODO: Da se vidi da li treba ceo objekat ili moze da se prebaci u string | |||
| // const reqData = JSON.stringify({ | |||
| // headers: req.headers, | |||
| // method: req.method, | |||
| // url: req.url, | |||
| // httpVersion: req.httpVersion, | |||
| // body: req.body, | |||
| // cookies: req.cookies, | |||
| // path: req.path, | |||
| // protocol: req.protocol, | |||
| // query: req.query, | |||
| // hostname: req.hostname, | |||
| // ip: req.ip, | |||
| // originalUrl: req.originalUrl, | |||
| // params: req.params, | |||
| // }) | |||
| // logger.silly((JSON.stringify(reqData))) | |||
| logger.silly(req) | |||
| next() | |||
| } | |||