diff --git a/colin-api/src/colin_api/config.py b/colin-api/src/colin_api/config.py index 57e27d9d18..f4308a675c 100644 --- a/colin-api/src/colin_api/config.py +++ b/colin-api/src/colin_api/config.py @@ -62,7 +62,8 @@ class _Config: # pylint: disable=too-few-public-methods SQLALCHEMY_TRACK_MODIFICATIONS = False - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) diff --git a/jobs/email-reminder/config.py b/jobs/email-reminder/config.py index d7b7c713e5..e835295b49 100644 --- a/jobs/email-reminder/config.py +++ b/jobs/email-reminder/config.py @@ -47,7 +47,8 @@ class _Config(object): # pylint: disable=too-few-public-methods PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) SEND_OUTSTANDING_BCOMPS = os.getenv('SEND_OUTSTANDING_BCOMPS', None) - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) ACCOUNT_SVC_AUTH_URL = os.getenv('ACCOUNT_SVC_AUTH_URL', None) diff --git a/jobs/furnishings/src/furnishings/config.py b/jobs/furnishings/src/furnishings/config.py index 63f562f635..56022c5a3d 100644 --- a/jobs/furnishings/src/furnishings/config.py +++ b/jobs/furnishings/src/furnishings/config.py @@ -47,7 +47,8 @@ class _Config: # pylint: disable=too-few-public-methods PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) AUTH_URL = os.getenv('AUTH_URL', None) diff --git a/jobs/future-effective-filings/config.py b/jobs/future-effective-filings/config.py index d0d223e13d..c1532a7e45 100644 --- a/jobs/future-effective-filings/config.py +++ b/jobs/future-effective-filings/config.py @@ -83,7 +83,8 @@ class _Config(object): # pylint: disable=too-few-public-methods AUTH_URL = os.getenv('AUTH_URL', '') USERNAME = os.getenv('AUTH_USERNAME', '') PASSWORD = os.getenv('AUTH_PASSWORD', '') - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN SECRET_KEY = 'a secret' diff --git a/jobs/involuntary-dissolutions/config.py b/jobs/involuntary-dissolutions/config.py index 314e8b2c05..e33ac0c9e2 100644 --- a/jobs/involuntary-dissolutions/config.py +++ b/jobs/involuntary-dissolutions/config.py @@ -47,7 +47,8 @@ class _Config(object): # pylint: disable=too-few-public-methods PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) NATS_SERVERS = os.getenv('NATS_SERVERS', None) diff --git a/jobs/update-colin-filings/config.py b/jobs/update-colin-filings/config.py index fd10197fdd..208d250151 100644 --- a/jobs/update-colin-filings/config.py +++ b/jobs/update-colin-filings/config.py @@ -48,7 +48,8 @@ class _Config(object): # pylint: disable=too-few-public-methods COLIN_URL = os.getenv('COLIN_URL', '') LEGAL_API_URL = os.getenv('LEGAL_API_URL', '') - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN ACCOUNT_SVC_AUTH_URL = os.getenv('ACCOUNT_SVC_AUTH_URL', None) ACCOUNT_SVC_CLIENT_ID = os.getenv('ACCOUNT_SVC_CLIENT_ID', None) diff --git a/jobs/update-legal-filings/config.py b/jobs/update-legal-filings/config.py index fb72bfdb81..1080f5dbf0 100644 --- a/jobs/update-legal-filings/config.py +++ b/jobs/update-legal-filings/config.py @@ -48,7 +48,8 @@ class _Config(object): # pylint: disable=too-few-public-methods COLIN_URL = os.getenv('COLIN_URL', '') LEGAL_API_URL = os.getenv('LEGAL_API_URL', '') - SENTRY_DSN = os.getenv('SENTRY_DSN', '') + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN ACCOUNT_SVC_AUTH_URL = os.getenv('ACCOUNT_SVC_AUTH_URL', None) ACCOUNT_SVC_CLIENT_ID = os.getenv('ACCOUNT_SVC_CLIENT_ID', None) diff --git a/queue_services/business-pay/src/business_pay/config.py b/queue_services/business-pay/src/business_pay/config.py index 22d59e0cda..2529fbf5cd 100644 --- a/queue_services/business-pay/src/business_pay/config.py +++ b/queue_services/business-pay/src/business_pay/config.py @@ -82,7 +82,8 @@ class Config: # pylint: disable=too-few-public-methods PAYMENT_SVC_URL = os.getenv("PAYMENT_SVC_URL", "") - SENTRY_DSN = os.getenv("SENTRY_DSN", None) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN SQLALCHEMY_TRACK_MODIFICATIONS = False @@ -142,7 +143,7 @@ class Config: # pylint: disable=too-few-public-methods ) SUB_AUDIENCE = os.getenv("SUB_AUDIENCE", "") SUB_SERVICE_ACCOUNT = os.getenv("SUB_SERVICE_ACCOUNT", "") - + SBC_CONNECT_GCP_QUEUE_DEBUG = os.getenv("SBC_CONNECT_GCP_QUEUE_DEBUG", "") NATS_CONNECT_ERROR_COUNT_MAX = os.getenv("NATS_CONNECT_ERROR_COUNT_MAX", 10) diff --git a/queue_services/entity-bn/src/entity_bn/config.py b/queue_services/entity-bn/src/entity_bn/config.py index ad441d05b0..754de4878d 100644 --- a/queue_services/entity-bn/src/entity_bn/config.py +++ b/queue_services/entity-bn/src/entity_bn/config.py @@ -60,7 +60,8 @@ class _Config(): # pylint: disable=too-few-public-methods PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) - SENTRY_DSN = os.getenv('SENTRY_DSN', None) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN COLIN_API = f"{os.getenv('COLIN_API_URL', '')}{os.getenv('COLIN_API_VERSION', '')}" SEARCH_API = \ diff --git a/queue_services/entity-digital-credentials/src/entity_digital_credentials/config.py b/queue_services/entity-digital-credentials/src/entity_digital_credentials/config.py index 7cb1ef1f69..863c8f3ebf 100644 --- a/queue_services/entity-digital-credentials/src/entity_digital_credentials/config.py +++ b/queue_services/entity-digital-credentials/src/entity_digital_credentials/config.py @@ -60,7 +60,8 @@ class _Config(): # pylint: disable=too-few-public-methods PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) - SENTRY_DSN = os.getenv('SENTRY_DSN', None) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) # variables diff --git a/queue_services/entity-emailer/src/entity_emailer/config.py b/queue_services/entity-emailer/src/entity_emailer/config.py index 5616a5c73e..057b00c19e 100644 --- a/queue_services/entity-emailer/src/entity_emailer/config.py +++ b/queue_services/entity-emailer/src/entity_emailer/config.py @@ -62,6 +62,8 @@ class _Config(): # pylint: disable=too-few-public-methods MSG_RETRY_NUM = int(os.getenv('MSG_RETRY_NUM', '5')) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN LD_SDK_KEY = os.getenv('LD_SDK_KEY', None) # urls diff --git a/queue_services/entity-filer/src/entity_filer/config.py b/queue_services/entity-filer/src/entity_filer/config.py index 13dbdc19a8..bf3d4dd7a7 100644 --- a/queue_services/entity-filer/src/entity_filer/config.py +++ b/queue_services/entity-filer/src/entity_filer/config.py @@ -62,7 +62,8 @@ class _Config(): # pylint: disable=too-few-public-methods PAYMENT_SVC_URL = os.getenv('PAYMENT_SVC_URL', '') - SENTRY_DSN = os.getenv('SENTRY_DSN', None) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN SQLALCHEMY_TRACK_MODIFICATIONS = False diff --git a/queue_services/entity-pay/src/entity_pay/config.py b/queue_services/entity-pay/src/entity_pay/config.py index a0c6cf5b19..b836bc75f1 100644 --- a/queue_services/entity-pay/src/entity_pay/config.py +++ b/queue_services/entity-pay/src/entity_pay/config.py @@ -62,7 +62,8 @@ class _Config(): # pylint: disable=too-few-public-methods PAYMENT_SVC_URL = os.getenv('PAYMENT_SVC_URL', '') - SENTRY_DSN = os.getenv('SENTRY_DSN', None) + SENTRY_DSN = os.getenv('SENTRY_DSN') or '' + SENTRY_DSN = '' if SENTRY_DSN.lower() == 'null' else SENTRY_DSN SQLALCHEMY_TRACK_MODIFICATIONS = False