Use exc_info_on_loglevel instead of exc_info

This commit is contained in:
Pedro Algarvio 2014-08-10 03:59:21 +01:00
parent d582859c9e
commit 26c28d3646

View File

@ -369,7 +369,7 @@ def create(vm_):
vm_['name'], exc
),
# Show the traceback if the debug logging level is enabled
exc_info=log.isEnabledFor(logging.DEBUG)
exc_info_on_loglevel=logging.DEBUG
)
return False
@ -744,7 +744,7 @@ def rename(name, kwargs, call=None):
name, kwargs['newname'], exc
),
# Show the traceback if the debug logging level is enabled
exc_info=log.isEnabledFor(logging.DEBUG)
exc_info_on_loglevel=logging.DEBUG
)
return kwargs['newname']