Fixes the method called for logging the datastring