Correct two logging calls