Refactoring logEndpoints, filter by Resource.from() != null 

fixes #726