diff --git a/server/services/node-red/lib/configureContainer.js b/server/services/node-red/lib/configureContainer.js index 40fef0ac82..09c62f1e48 100644 --- a/server/services/node-red/lib/configureContainer.js +++ b/server/services/node-red/lib/configureContainer.js @@ -17,11 +17,8 @@ async function configureContainer(config) { const { basePathOnContainer } = await this.gladys.system.getGladysBasePath(); - logger.info('Nodered: basePathOnContainer', basePathOnContainer); - // Create configuration path (if not exists) const configFilepath = path.join(basePathOnContainer, DEFAULT.CONFIGURATION_PATH); - logger.info('Node-RED: configFilepath', configFilepath); await fs.mkdir(path.dirname(configFilepath), { recursive: true }); try { await fs.chown(path.dirname(configFilepath), 1000, 1000); @@ -45,14 +42,11 @@ async function configureContainer(config) { let fileContentString = fileContent.toString(); let configChanged = false; - logger.info('Node-RED: Config', config.nodeRedUsername, config.nodeRedPassword); if (config.nodeRedPassword && config.nodeRedUsername) { // Check for changes const [, username] = fileContentString.match(/username: '(.+)'/); const [, password] = fileContentString.match(/password: '(.+)'/); - logger.info('Node-RED: extracted ', username, password); - if ( username !== config.nodeRedUsername || (await passwordUtils.compare(config.nodeRedPassword, password)) === false @@ -61,8 +55,6 @@ async function configureContainer(config) { fileContentString = fileContentString.replace(/username: '(.+)'/, `username: '${config.nodeRedUsername}'`); fileContentString = fileContentString.replace(/password: '(.+)'/, `password: '${encodedPassword}'`); - logger.info('Node-RED: writed ', username, encodedPassword); - configChanged = true; } } diff --git a/server/services/node-red/lib/disconnect.js b/server/services/node-red/lib/disconnect.js index 7d95ac0d6d..a3f48e6172 100644 --- a/server/services/node-red/lib/disconnect.js +++ b/server/services/node-red/lib/disconnect.js @@ -26,8 +26,6 @@ async function disconnect() { const { basePathOnContainer } = await this.gladys.system.getGladysBasePath(); - logger.info('Nodered: basePathOnContainer', basePathOnContainer); - const configFilepath = path.join(basePathOnContainer, DEFAULT.CONFIGURATION_PATH); await fs.rm(path.dirname(configFilepath), { recursive: true }); diff --git a/server/services/node-red/lib/installContainer.js b/server/services/node-red/lib/installContainer.js index 7de1afb463..a93d46552d 100644 --- a/server/services/node-red/lib/installContainer.js +++ b/server/services/node-red/lib/installContainer.js @@ -36,7 +36,6 @@ async function installContainer(config) { } const { basePathOnHost } = await this.gladys.system.getGladysBasePath(); - logger.info('Nodered: basePathOnHost', basePathOnHost); let dockerContainers = await this.gladys.system.getContainers({ all: true,