plugins.py/register(): improve logging

This commit is contained in:
urlbot
2015-06-21 00:56:33 +02:00
parent 2da78641a7
commit 32e2d15581

View File

@@ -15,8 +15,8 @@ from excuses import excuses
from urlbot import extract_title from urlbot import extract_title
from functools import wraps from functools import wraps
ptypes_PARSE = 0 ptypes_PARSE = 'parser'
ptypes_COMMAND = 1 ptypes_COMMAND = 'command'
ptypes = [ptypes_PARSE, ptypes_COMMAND] ptypes = [ptypes_PARSE, ptypes_COMMAND]
joblist = [] joblist = []
@@ -848,7 +848,7 @@ def register(func_type):
and f.plugin_type == func_type and f.plugin_type == func_type
] ]
log.info('auto registering plugins: %s' % (', '.join( log.info('auto-reg %s: %s' % (func_type, ', '.join(
f.plugin_name for f in functions f.plugin_name for f in functions
))) )))