Gergő Tisza has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/181779

Change subject: Rename $wgSentryEndpoint to $wgSentryDsn to better match the 
docs
......................................................................

Rename $wgSentryEndpoint to $wgSentryDsn to better match the docs

Change-Id: I57fc185e94bd9338d226e66da1346f81e65ec853
---
M Sentry.php
M SentryHooks.php
M resources/init.js
3 files changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Sentry 
refs/changes/79/181779/1

diff --git a/Sentry.php b/Sentry.php
index 965b1e9..0b15c34 100644
--- a/Sentry.php
+++ b/Sentry.php
@@ -30,10 +30,10 @@
 $wgHooks['BeforePageDisplay'][] = 'SentryHooks::onBeforePageDisplay';
 
 /**
- * Sentry endpoint / API key
+ * Sentry DSN (http://raven.readthedocs.org/en/latest/config/#the-sentry-dsn
  * @var string
  */
-$wgSentryEndpoint = null;
+$wgSentryDsn = null;
 
 /**
  * List of domains to log error from.
diff --git a/SentryHooks.php b/SentryHooks.php
index e19aec1..258561a 100644
--- a/SentryHooks.php
+++ b/SentryHooks.php
@@ -6,10 +6,10 @@
         * @return bool
         */
        public static function onResourceLoaderGetConfigVars( &$vars ) {
-               global $wgSentryEndpoint, $wgSentryWhitelist, 
$wgSentryLogOnError;
+               global $wgSentryDsn, $wgSentryWhitelist, $wgSentryLogOnError;
 
                $vars['wgSentry'] = array(
-                       'endpoint' => $wgSentryEndpoint,
+                       'dsn' => $wgSentryDsn,
                        'whitelist' => $wgSentryWhitelist,
                        'logOnError' => $wgSentryLogOnError,
                );
diff --git a/resources/init.js b/resources/init.js
index 35a9223..2ea44fc 100644
--- a/resources/init.js
+++ b/resources/init.js
@@ -18,5 +18,5 @@
                language: mw.config.get( 'wgUserLanguage' )
        };
 
-       Raven.config( config.endpoint, options ).install();
+       Raven.config( config.dsn, options ).install();
 } ) ( mediaWiki, Raven );

-- 
To view, visit https://gerrit.wikimedia.org/r/181779
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57fc185e94bd9338d226e66da1346f81e65ec853
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Sentry
Gerrit-Branch: master
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to