Refactoring: improved logger messages.