Skip to content

Commit

Permalink
extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Aug 12, 2024
1 parent 54ecf2c commit ef49ef9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/domainService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ef49ef9

Please sign in to comment.