mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Fix Transport selection via DSN is deprecated
This commit is contained in:
parent
e50eae19e6
commit
0f7037bb32
@ -23,6 +23,7 @@ import platform
|
||||
|
||||
try:
|
||||
import raven
|
||||
from raven.transport.http import HTTPTransport
|
||||
RAVEN_AVAILABLE = True
|
||||
except ImportError:
|
||||
# raven is not installed with deb package in order to simplify packaging
|
||||
@ -80,7 +81,7 @@ class CrashReport:
|
||||
server_config = Config.instance().get_section_config("Server")
|
||||
if server_config.getboolean("report_errors"):
|
||||
if self._client is None:
|
||||
self._client = raven.Client(CrashReport.DSN, release=__version__, raise_send_errors=True)
|
||||
self._client = raven.Client(CrashReport.DSN, release=__version__, raise_send_errors=True, transport=HTTPTransport)
|
||||
if request is not None:
|
||||
self._client.http_context({
|
||||
"method": request.method,
|
||||
|
@ -2,6 +2,6 @@ jsonschema>=2.4.0
|
||||
aiohttp>=0.21.6
|
||||
aiohttp_cors>=0.4.0
|
||||
Jinja2>=2.7.3
|
||||
raven>=5.2.0
|
||||
raven>=5.23.0
|
||||
psutil>=3.0.0
|
||||
zipstream>=1.1.3
|
||||
|
Loading…
Reference in New Issue
Block a user