If file, not add trailing slash in info view

Added logging import and several calls to logger.debug