Skip to content

Commit

Permalink
Change REMOTE_URL to be REMOTES, and force it to be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 30, 2011
1 parent 8f8e534 commit dfd98c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/config/index.rst
Expand Up @@ -155,7 +155,7 @@ this, Sentry allows you to specify a custom client::

CLIENT = 'sentry.client.base.SentryClient'

In addition to the default client (which will handle multi-db and REMOTE_URL for you) we also include two additional options:
In addition to the default client (which will handle REMOTES for you) we also include two additional options:

*******************
LoggingSentryClient
Expand Down
4 changes: 2 additions & 2 deletions docs/install/index.rst
Expand Up @@ -181,11 +181,11 @@ Start with adding the client to your ``INSTALLED_APPS``::
'sentry.client',
]

Add the ``SENTRY_REMOTE_URL`` configuration variable, to point to the absolute location to the ``/store/`` view on your
Add the ``SENTRY_REMOTES`` configuration variable, to point to the absolute location to the ``/store/`` view on your
Sentry server::

# This should be the absolute URI of sentries store view
SENTRY_REMOTE_URL = 'http://your.sentry.server/sentry/store/'
SENTRY_REMOTES = ['http://your.sentry.server/sentry/store/']

You will also need to ensure that your ``SENTRY_KEY`` matches across your client and server configurations::

Expand Down
4 changes: 2 additions & 2 deletions sentry/client/base.py
Expand Up @@ -193,8 +193,8 @@ def send_remote(self, url, data, headers={}):

def send(self, **kwargs):
"Sends the message to the server."
if app.config['REMOTE_URL']:
for url in app.config['REMOTE_URL']:
if app.config['REMOTES']:
for url in app.config['REMOTES']:
message = base64.b64encode(simplejson.dumps(kwargs).encode('zlib'))
timestamp = time.time()
signature = get_mac_signature(message, timestamp)
Expand Down

0 comments on commit dfd98c1

Please sign in to comment.