From 9f4ce7b38a0f5d8cba185d907238fb09b3922023 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Fri, 5 Apr 2013 16:44:05 -0600 Subject: [PATCH] Add new debug log for "Missing Args" exceptions --- salt/minion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/minion.py b/salt/minion.py index 98cca65244..8f7561c329 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -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()