Move logging line to correct location.