Commit a996a673 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix sentry DSN config

parent 07573424
Pipeline #20384 passed with stages
in 2 minutes and 30 seconds
......@@ -208,13 +208,13 @@ class SentryConfig(object):
if parser.has_option(section, 'web_dsn'):
self.web_dsn = parser.get(section, 'web_dsn')
if parser.has_option(section, 'api_dsn'):
self.api_dsn = parser.get(section, 'web_dsn')
self.api_dsn = parser.get(section, 'api_dsn')
if parser.has_option(section, 'script_dsn'):
self.script_dsn = parser.get(section, 'web_dsn')
self.script_dsn = parser.get(section, 'script_dsn')
def read_env(self, prefix):
read_env_item(self, 'web_dsn', prefix + 'SENTRY_WEB_DSN')
read_env_item(self, 'api_dsn', prefix + 'SENTRY_WEB_DSN')
read_env_item(self, 'api_dsn', prefix + 'SENTRY_API_DSN')
read_env_item(self, 'script_dsn', prefix + 'SENTRY_SCRIPT_DSN')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment