issue with datamapper log statement