diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index 099ab28a..f5da30f4 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -17,8 +17,10 @@ import raven import json -import asyncio.futures -import asyncio + +import sys +import struct +import platform from .version import __version__ from .config import Config @@ -50,6 +52,15 @@ class CrashReport: "url": request.path, "data": request.json, }) + self._client.tags_context({ + "os:name": platform.system(), + "os:release": platform.release(), + "python:version": "{}.{}.{}".format(sys.version_info[0], + sys.version_info[1], + sys.version_info[2]), + "python:bit": struct.calcsize("P") * 8, + "python:encoding": sys.getdefaultencoding() + }) try: self._client.captureException() except Exception as e: