From d41e5af63816783d1ab466743c0b76adca873393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Mon, 6 Sep 2021 13:39:15 +0100 Subject: [PATCH] feat: add debug logs to middleware --- lib/routes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes.js b/lib/routes.js index 965f06d8..b4bb9e28 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -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