]> PHS Git Server - phs-api.git/commitdiff
Removing debug logging from getStatus method on vpn.controller.js.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 20:25:52 +0000 (15:25 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 20:25:52 +0000 (15:25 -0500)
src/controllers/vpn.controller.js

index 5f06ea71a7ca6b9cbce658df92979bf79fc313c7..b93f3a486f71ef6e97296f8dac82b319912656e9 100644 (file)
@@ -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')
       );