From: charleswrayjr Date: Tue, 9 Sep 2025 20:25:52 +0000 (-0500) Subject: Removing debug logging from getStatus method on vpn.controller.js. X-Git-Url: https://git.phasecustomsoft.com/static/git-favicon.png?a=commitdiff_plain;h=41ef254692ad9f2a660304ad3e1e03310155bbb4;p=phs-api.git Removing debug logging from getStatus method on vpn.controller.js. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 5f06ea7..b93f3a4 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -249,7 +249,10 @@ module.exports = { try { // Read from the OpenVPN status log to get the client's real IP const statusContent = fs.readFileSync('/var/log/openvpn/openvpn-status.log', 'utf8'); + logger.warn(statusContent); let clientIp = null; + logger.warn(clientName); + logger.warn(duration); const clientLine = statusContent.split('\n').find(line => line.startsWith(`${clientName},`) && !line.startsWith('Virtual Address') );