Fixed log message functionality.