]> PHS Git Server - phs-api.git/commitdiff
Testing vpn paths.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 17:54:44 +0000 (12:54 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 17:54:44 +0000 (12:54 -0500)
app.js
src/controllers/vpn.controller.js

diff --git a/app.js b/app.js
index f3022a48084b718402ed59e0b140457d62c289f3..75033551c4d7ebfea13c5cf26c399c4764ee6e1f 100755 (executable)
--- a/app.js
+++ b/app.js
@@ -50,7 +50,7 @@ app.use(cookieParser());
 const logger = log4js.default;
 
 // Set log level based on the active environment for global logger
-logger.level = 'debug';
+logger.level = 'warn';
 
 switch (process.env.PHS_ENV) {
   case 'DEV':
index 2847f111951a47b02d95e1ee1c498096ac8ac4af..67335e1dfc9795e39a222037716ee448f126a0b5 100644 (file)
@@ -11,7 +11,7 @@ const parseVpnStatus = ( output ) => {
   const lines = output.split( '\n' ).map( line => line.trim() ).filter( Boolean );
 
   const lValues = [ 'lines:', lines ].join( ' ' );
-  logger.debug( lValues );
+  logger.error( lValues );
   // Find indices using a single pass
   let sIndex = -1, mIndex = -1, eIndex = -1;
   lines.forEach( ( line, i ) => {