示例#1
0
    def verbose_details(self,
                        entry,
                        task=None,
                        act=None,
                        reason=None,
                        **kwargs):
        msg = "%s: `%s` by %s plugin" % (act.upper(), entry['title'],
                                         task.current_plugin)
        if reason:
            msg += ' because %s' % reason[0].lower() + reason[1:]

        task_log.verbose(msg)
示例#2
0
    def verbose_details(self, task, **kwarg):
        if task.manager.options.silent:
            return
        kwarg['plugin'] = task.current_plugin
        kwarg['action'] = kwarg['action'].upper()

        if kwarg['reason'] is None:
            msg = "%(action)s: `%(title)s` by %(plugin)s plugin"
        else:
            # lower capitalize first letter of reason
            if kwarg['reason'] and len(kwarg['reason']) > 2:
                kwarg['reason'] = kwarg['reason'][0].lower() + kwarg['reason'][1:]
            msg = "%(action)s: `%(title)s` by %(plugin)s plugin because %(reason)s"

        task_log.verbose(msg % kwarg)
示例#3
0
    def verbose_details(self, task, **kwarg):
        if task.manager.options.silent:
            return
        kwarg['plugin'] = task.current_plugin
        kwarg['action'] = kwarg['action'].upper()

        if kwarg['reason'] is None:
            msg = "%(action)s: `%(title)s` by %(plugin)s plugin"
        else:
            # lower capitalize first letter of reason
            if kwarg['reason'] and len(kwarg['reason']) > 2:
                kwarg['reason'] = kwarg['reason'][0].lower(
                ) + kwarg['reason'][1:]
            msg = "%(action)s: `%(title)s` by %(plugin)s plugin because %(reason)s"

        task_log.verbose(msg % kwarg)
示例#4
0
    def verbose_details(self, entry, task=None, act=None, reason=None, **kwargs):
        msg = "%s: `%s` by %s plugin" % (act.upper(), entry['title'], task.current_plugin)
        if reason:
            msg += ' because %s' % reason[0].lower() + reason[1:]

        task_log.verbose(msg)