Removed \n as it was not being transformed while printing error msg to log.