diff --git a/backend/moonstream/reporter.py b/backend/moonstream/reporter.py index 0943c327..1ba0997b 100644 --- a/backend/moonstream/reporter.py +++ b/backend/moonstream/reporter.py @@ -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=[], ) diff --git a/backend/moonstream/settings.py b/backend/moonstream/settings.py index b38ea7db..0a90d751 100644 --- a/backend/moonstream/settings.py +++ b/backend/moonstream/settings.py @@ -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", "") diff --git a/backend/sample.env b/backend/sample.env index bc95e6a6..779bbb0c 100644 --- a/backend/sample.env +++ b/backend/sample.env @@ -8,4 +8,4 @@ export MOONSTREAM_ADMIN_ACCESS_TOKEN="" export AWS_S3_SMARTCONTRACT_BUCKET="" export BUGOUT_BROOD_URL="https://auth.bugout.dev" export BUGOUT_SPIRE_URL="https://spire.bugout.dev" -export BUGOUT_HUMBUG_TOKEN="" +export HUMBUG_REPORTER_BACKEND_TOKEN=""