Commit 456ab9e9 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Add debug information.

parent de26595a
......@@ -185,8 +185,9 @@ class BasePlugin(object):
def save(self):
""" Save DB changes """
self.session.commit()
log.debug('Added results to the database')
log.debug('Added results to the database for {}'.format(self.name))
def new_result(self, result_cls, **data):
"""
......@@ -294,8 +295,8 @@ class QAPlugin(BasePlugin):
"""
if self.test_result is None:
log.debug('The plugin data has not been loaded, '
'or this plugin does not define a test')
log.debug("'%s' plugin's data has not been loaded, "
"or this plugin does not define a test" % self.name)
return None
# FIXME: ugly
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment