Merge pull request #837 from josepfo/feat/add-debug-logs-to-middleware
feat: add debug logs to middleware
This commit is contained in:
commit
a6ba25f58b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue