Fixed logging issues with health check