Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Aug 12, 2024
1 parent 1c6c115 commit b17b51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/domainService.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async function updateHaproxy(haproxyAppsConfig) {
if (!successRestart) {
throw new Error('Invalid HAPROXY Config File!');
}
log.info(`HAPROXY restarted with new configuration: ${JSON.stringify(haproxyAppsConfig)}`);
log.info('HAPROXY restarted with new configuration');
} finally {
updateHaproxyRunning = false;
}
Expand Down Expand Up @@ -627,6 +627,7 @@ async function generateAndReplaceMainApplicationHaproxyConfig(timeout = 30) {
if (nonGAppsProcessingFinishedOnce && gAppsProcessingFinishedOnce && JSON.stringify(lastHaproxyAppsConfig) !== JSON.stringify(haproxyAppsConfig)) {
log.info(`Non G Mode updating haproxy with lenght: ${haproxyAppsConfig.length}`);
lastHaproxyAppsConfig = haproxyAppsConfig;
log.info(`Minecraft Config: ${JSON.stringify(haproxyAppsConfig.find((app) => app.name === 'Minecraft'))}`);
await updateHaproxy(haproxyAppsConfig);
}
} catch (error) {
Expand Down Expand Up @@ -741,6 +742,7 @@ async function generateAndReplaceMainApplicationHaproxyGAppsConfig(timeout = 5)
if (nonGAppsProcessingFinishedOnce && gAppsProcessingFinishedOnce && JSON.stringify(lastHaproxyAppsConfig) !== JSON.stringify(haproxyAppsConfig)) {
log.info(`G Mode updating haproxy with lenght: ${haproxyAppsConfig.length}`);
lastHaproxyAppsConfig = haproxyAppsConfig;
log.info(`Minecraft Config: ${JSON.stringify(haproxyAppsConfig.find((app) => app.name === 'Minecraft'))}`);
await updateHaproxy(haproxyAppsConfig);
}
} catch (error) {
Expand Down

0 comments on commit b17b51c

Please sign in to comment.