Renamed env variable for crash reports token

pull/220/head
kompotkot 2021-09-01 13:43:44 +00:00
rodzic 8d16c68a10
commit c34f9245c0
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -3,7 +3,7 @@ import uuid
from humbug.consent import HumbugConsent
from humbug.report import HumbugReporter
from .settings import BUGOUT_HUMBUG_TOKEN
from .settings import HUMBUG_REPORTER_BACKEND_TOKEN
session_id = str(uuid.uuid4())
client_id = "moonstream-backend"
@ -13,6 +13,6 @@ reporter = HumbugReporter(
consent=HumbugConsent(True),
client_id=client_id,
session_id=session_id,
bugout_token=BUGOUT_HUMBUG_TOKEN,
bugout_token=HUMBUG_REPORTER_BACKEND_TOKEN,
tags=[],
)

Wyświetl plik

@ -9,7 +9,7 @@ bugout_client = Bugout(brood_api_url=BUGOUT_BROOD_URL, spire_api_url=BUGOUT_SPIR
BUGOUT_REQUEST_TIMEOUT_SECONDS = 5
BUGOUT_HUMBUG_TOKEN = os.environ.get("BUGOUT_HUMBUG_TOKEN")
HUMBUG_REPORTER_BACKEND_TOKEN = os.environ.get("HUMBUG_REPORTER_BACKEND_TOKEN")
# Default value is "" instead of None so that mypy understands that MOONSTREAM_APPLICATION_ID is a string
MOONSTREAM_APPLICATION_ID = os.environ.get("MOONSTREAM_APPLICATION_ID", "")

Wyświetl plik

@ -8,4 +8,4 @@ export MOONSTREAM_ADMIN_ACCESS_TOKEN="<Access token to application resources>"
export AWS_S3_SMARTCONTRACT_BUCKET="<AWS S3 bucket to store smart contracts>"
export BUGOUT_BROOD_URL="https://auth.bugout.dev"
export BUGOUT_SPIRE_URL="https://spire.bugout.dev"
export BUGOUT_HUMBUG_TOKEN="<Bugout Humbug token for crash reports>"
export HUMBUG_REPORTER_BACKEND_TOKEN="<Bugout Humbug token for crash reports>"