From 252aedda259aefcf664f1212f9d8bd29794e2c9f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 18 Aug 2020 12:46:55 -0700 Subject: [PATCH] remove verbose logs --- src/apphealthmonitor.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/apphealthmonitor.js b/src/apphealthmonitor.js index 17804f242..13d0ea505 100644 --- a/src/apphealthmonitor.js +++ b/src/apphealthmonitor.js @@ -79,15 +79,8 @@ function checkAppHealth(app, callback) { const manifest = app.manifest; docker.inspect(app.containerId, function (error, data) { - if (error || !data || !data.State) { - debugApp(app, 'Error inspecting container'); - return setHealth(app, apps.HEALTH_ERROR, callback); - } - - if (data.State.Running !== true) { - debugApp(app, 'exited'); - return setHealth(app, apps.HEALTH_DEAD, callback); - } + if (error || !data || !data.State) return setHealth(app, apps.HEALTH_ERROR, callback); + if (data.State.Running !== true) return setHealth(app, apps.HEALTH_DEAD, callback); // non-appstore apps may not have healthCheckPath if (!manifest.healthCheckPath) return setHealth(app, apps.HEALTH_HEALTHY, callback);