1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

more logging things

This commit is contained in:
2016-06-13 00:58:13 +02:00
parent 34983adcd1
commit d249e31ea5
4 changed files with 21 additions and 3 deletions

8
pelican_deploy/util.py Normal file
View File

@@ -0,0 +1,8 @@
def exception_logged(func, log):
def wrapped(*args, **kwargs):
try:
func(*args, **kwargs)
except:
log("Caught Exception!", exc_info=True)
raise # reraise