Log the error generated that causes returns.mysql.returner to except.

This commit is contained in:
Kaithar 2015-05-15 20:47:46 +01:00 committed by rallytime
parent 8ec4fb2a73
commit 346f30bdda

View file

@ -240,7 +240,8 @@ def returner(ret):
ret['id'],
ret.get('success', False),
json.dumps(ret)))
except salt.exceptions.SaltMasterError:
except salt.exceptions.SaltMasterError as exc:
log.critical(exc)
log.critical('Could not store return with MySQL returner. MySQL server unavailable.')