add extra into the the exception event label

This commit is contained in:
sfaulds 2016-10-13 15:01:09 +11:00
parent d9b9901a04
commit d5b7a51bb4

View file

@ -46,7 +46,8 @@ class GoogleAnalytics():
if(stackFrames != None): if(stackFrames != None):
fileName = os.path.split(stackFrames[0])[1] fileName = os.path.split(stackFrames[0])[1]
errorFile = "%s:%s" % (fileName, stackFrames[1]) errorFile = "%s:%s(%s)(%s)" % (fileName, stackFrames[1], exc_obj.message, stackFrames[3].strip())
errorFile = errorFile[0:499]
errorType = "%s" % (exc_type.__name__) errorType = "%s" % (exc_type.__name__)
del(exc_type, exc_obj, exc_tb) del(exc_type, exc_obj, exc_tb)
log.error(errorType + " - " + errorFile) log.error(errorType + " - " + errorFile)