2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/8ebc6c5b1cbd/ Changeset: 8ebc6c5b1cbd User: dannon Date: 2015-01-30 16:21:25+00:00 Summary: Make toolshed compatible with sentry reporting. Affected #: 1 file diff -r a917e3d871f2782ae4cf1b57bb4775c0e0224efe -r 8ebc6c5b1cbd974df125b9e9d5ec885efd916949 lib/galaxy/webapps/tool_shed/config.py --- a/lib/galaxy/webapps/tool_shed/config.py +++ b/lib/galaxy/webapps/tool_shed/config.py @@ -2,6 +2,7 @@ Universe configuration builder. """ import os +import re import sys import logging import logging.config @@ -133,6 +134,19 @@ self.citation_cache_data_dir = resolve_path( kwargs.get( "citation_cache_data_dir", "database/tool_shed_citations/data" ), self.root ) self.citation_cache_lock_dir = resolve_path( kwargs.get( "citation_cache_lock_dir", "database/tool_shed_citations/locks" ), self.root ) + @property + def sentry_dsn_public( self ): + """ + Sentry URL with private key removed for use in client side scripts, + sentry server will need to be configured to accept events + """ + # TODO refactor this to a common place between toolshed/galaxy config, along + # with other duplicated methods. + if self.sentry_dsn: + return re.sub( r"^([^:/?#]+:)?//(\w+):(\w+)", r"\1//\2", self.sentry_dsn ) + else: + return None + def __parse_config_file_options( self, kwargs ): defaults = dict( datatypes_config_file = [ 'config/datatypes_conf.xml', 'datatypes_conf.xml', 'config/datatypes_conf.xml.sample' ], https://bitbucket.org/galaxy/galaxy-central/commits/1e0f1acf3c54/ Changeset: 1e0f1acf3c54 User: dannon Date: 2015-01-30 16:23:36+00:00 Summary: Add sentry_dsn to toolshed sample. Affected #: 1 file diff -r 8ebc6c5b1cbd974df125b9e9d5ec885efd916949 -r 1e0f1acf3c54ac7ed12d174f40c2f2f62b01f043 config/tool_shed.ini.sample --- a/config/tool_shed.ini.sample +++ b/config/tool_shed.ini.sample @@ -125,3 +125,6 @@ #static_favicon_dir = static/favicon.ico #static_scripts_dir = static/scripts/ #static_style_dir = static/style/blue + +# Sentry (getsentry.com) DSN for catching bugs. +#sentry_dsn = None Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.