Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/gunicorn_config.py
# Copyright (C) 2019 The Software Heritage developers | # Copyright (C) 2019-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from sentry_sdk.integrations.django import DjangoIntegration | from sentry_sdk.integrations.django import DjangoIntegration | ||||
from swh.core.api.gunicorn_config import * # noqa | from swh.core.sentry import init_sentry | ||||
from swh.core.api.gunicorn_config import post_fork as _post_fork | |||||
def post_fork(server, worker): # type: ignore | def post_fork(server, worker): | ||||
_post_fork(server, worker, | init_sentry(sentry_dsn=None, integrations=[DjangoIntegration()]) | ||||
flask=False, sentry_integrations=[DjangoIntegration()]) |