Skip to content

Commit

Permalink
improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Aug 1, 2024
1 parent bbfd89f commit e4e39e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/services/application/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ async function checkAppRunning(url, appName) {
}

function applicationWithChecks(app) {
log.info(`Checking if ${app.name} have specific checks.`);
if (generalWebsiteApps.includes(app.name)) {
return true;
} else if (app.name === 'explorer') {
Expand Down
2 changes: 1 addition & 1 deletion src/services/domainService.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ async function generateAndReplaceMainApplicationHaproxyConfig(isGmode = false, t
}
} else {
const applicationWithChecks = applicationChecks.applicationWithChecks(app);
log.info(`Application ${app.name} have specific checks: ${applicationWithChecks}`);
if (applicationWithChecks) {
log.info(`Application ${app.name} have specific checks.`);
for (const location of appLocations) { // run coded checks for app
// eslint-disable-next-line no-await-in-loop
const isOk = await applicationChecks.checkApplication(app, location.ip);
Expand Down

0 comments on commit e4e39e0

Please sign in to comment.