mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Use exc_info_on_loglevel
instead of exc_info
This commit is contained in:
parent
d582859c9e
commit
26c28d3646
@ -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']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user