Add new debug log for "Missing Args" exceptions

This commit is contained in:
Colton Myers 2013-04-05 16:44:05 -06:00
parent 2ff8e8ee20
commit 9f4ce7b38a

View File

@ -437,6 +437,8 @@ class Minion(object):
aspec = _getargs(minion_instance.functions[data['fun']])
msg = 'Missing arguments executing "{0}": {1}'
log.warning(msg.format(function_name, aspec))
dmsg = '"Missing args" caused by exc: {0}'.format(exc)
log.debug(dmsg)
ret['return'] = msg.format(function_name, aspec)
except Exception:
trb = traceback.format_exc()