fix(hint-log): fix logic in logFormattedMessages