Correct logging usage