'Logs the task\'s current choice if it should be logged. If
``duplicate``, then this is a secondary choice after a duplicate was
detected and a decision was made.'

def log_choice(self, task, duplicate=False):

    paths = task.paths
    if duplicate:
        if task.should_remove_duplicates:
            self.tag_log(u'duplicate-replace', paths)
        elif (task.choice_flag in (action.ASIS, action.APPLY)):
            self.tag_log(u'duplicate-keep', paths)
        elif (task.choice_flag is action.SKIP):
            self.tag_log(u'duplicate-skip', paths)
    elif (task.choice_flag is action.ASIS):
        self.tag_log(u'asis', paths)
    elif (task.choice_flag is action.SKIP):
        self.tag_log(u'skip', paths)
