Changed method of scanning for log errors in healthcheck