mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
plugins.py/register(): improve logging
This commit is contained in:
@@ -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
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user