Removes logging code