Volans has uploaded a new change for review.
https://gerrit.wikimedia.org/r/311605
Change subject: Reimage: improve output in case of errors
......................................................................
Reimage: improve output in case of errors
Bug: T143536
Change-Id: Idc8fe2152d1684c3a0e32100f975305f61585755
---
M modules/salt/files/wmf_auto_reimage.py
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/05/311605/1
diff --git a/modules/salt/files/wmf_auto_reimage.py
b/modules/salt/files/wmf_auto_reimage.py
index ae24830..460d935 100644
--- a/modules/salt/files/wmf_auto_reimage.py
+++ b/modules/salt/files/wmf_auto_reimage.py
@@ -1033,8 +1033,10 @@
try:
run(args, user)
- except Exception:
- logger.exception('Unable to run wmf_auto_reimage')
+ except Exception as e:
+ message = 'Unable to run wmf_auto_reimage'
+ print('{message}: {error}'.format(message=message, error=e))
+ logger.exception(message)
if __name__ == '__main__':
--
To view, visit https://gerrit.wikimedia.org/r/311605
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc8fe2152d1684c3a0e32100f975305f61585755
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Volans <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits