[misc] Follow logging best practice.