From ef49ef9c86595695762d8f2f8c09570d76c4be58 Mon Sep 17 00:00:00 2001 From: Cabecinha84 Date: Mon, 12 Aug 2024 13:25:50 +0100 Subject: [PATCH] extra logs --- src/services/domainService.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/domainService.js b/src/services/domainService.js index 18d2e61..cccfcd7 100644 --- a/src/services/domainService.js +++ b/src/services/domainService.js @@ -252,6 +252,7 @@ async function updateHaproxy(haproxyAppsConfig) { if (!successRestart) { throw new Error('Invalid HAPROXY Config File!'); } + log.info('HAPROXY restarted with new configuration'); } finally { updateHaproxyRunning = false; } @@ -624,7 +625,7 @@ async function generateAndReplaceMainApplicationHaproxyConfig(timeout = 30) { } if (nonGAppsProcessingFinishedOnce && gAppsProcessingFinishedOnce && JSON.stringify(lastHaproxyAppsConfig) !== JSON.stringify(haproxyAppsConfig)) { - log.info('Non G Mode updating haproxy'); + log.info(`Non G Mode updating haproxy with lenght: ${haproxyAppsConfig.length}`); lastHaproxyAppsConfig = haproxyAppsConfig; await updateHaproxy(haproxyAppsConfig); } @@ -738,7 +739,7 @@ async function generateAndReplaceMainApplicationHaproxyGAppsConfig(timeout = 5) } if (nonGAppsProcessingFinishedOnce && gAppsProcessingFinishedOnce && JSON.stringify(lastHaproxyAppsConfig) !== JSON.stringify(haproxyAppsConfig)) { - log.info('G Mode updating haproxy'); + log.info(`G Mode updating haproxy with lenght: ${haproxyAppsConfig.length}`); lastHaproxyAppsConfig = haproxyAppsConfig; await updateHaproxy(haproxyAppsConfig); }