Skip to content

Commit

Permalink
console warn if unhealthy
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 11, 2024
1 parent 5b70b13 commit 2eadf2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export default class Server {
handleHealthCheck(request, response) {
const healthCheck = this.getHealthCheck(request)

if (healthCheck.healthStatus !== "healthy") {
console.warn(`health check: ${JSON.stringify(healthCheck)}`)
}

response.json({
appId: process.env.APP_ID || "REPLACE_ME",
healthStatus: healthCheck.healthStatus,
Expand Down

0 comments on commit 2eadf2a

Please sign in to comment.