Refactoring log messages.