refactoring
fix logMessage refact error