mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #24989 from htch/develop
Log traceback on 'Function in mine_functions failed to execute' exceptions in mine.update
This commit is contained in:
commit
596567315e
@ -8,6 +8,7 @@ from __future__ import absolute_import
|
||||
import copy
|
||||
import logging
|
||||
import time
|
||||
import traceback
|
||||
|
||||
# Import salt libs
|
||||
import salt.crypt
|
||||
@ -124,8 +125,10 @@ def update(clear=False):
|
||||
continue
|
||||
data[func] = __salt__[func]()
|
||||
except Exception:
|
||||
trace = traceback.format_exc()
|
||||
log.error('Function {0} in mine_functions failed to execute'
|
||||
.format(func))
|
||||
log.debug('Error: {0}'.format(trace))
|
||||
continue
|
||||
if __opts__['file_client'] == 'local':
|
||||
if not clear:
|
||||
|
Loading…
Reference in New Issue
Block a user