Logging original exception when retrieving an entity.