feat: add debug logs to middleware
This commit is contained in:
parent
e952682917
commit
d41e5af638
1 changed files with 1 additions and 0 deletions
|
|
@ -599,6 +599,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