Merge pull request #837 from josepfo/feat/add-debug-logs-to-middleware

feat: add debug logs to middleware
This commit is contained in:
Rafael Taranto 2021-11-11 18:31:10 +00:00 committed by GitHub
commit a6ba25f58b

View file

@ -617,6 +617,7 @@ function sha256 (buf) {
}
function populateDeviceId (req, res, next) {
console.log(`DEBUG LOG - Method: ${req.method} Path: ${req.path}`)
const deviceId = _.isFunction(req.connection.getPeerCertificate)
? sha256(req.connection.getPeerCertificate().raw)
: null