jenkins-bot has submitted this change and it was merged. Change subject: Rename $wgSentryEndpoint to $wgSentryDsn to better match the docs ......................................................................
Rename $wgSentryEndpoint to $wgSentryDsn to better match the docs Bug: T84957 Change-Id: I57fc185e94bd9338d226e66da1346f81e65ec853 --- M Sentry.php M SentryHooks.php M resources/init.js 3 files changed, 5 insertions(+), 5 deletions(-) Approvals: Gilles: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I57fc185e94bd9338d226e66da1346f81e65ec853 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Sentry Gerrit-Branch: master Gerrit-Owner: Gergő Tisza <[email protected]> Gerrit-Reviewer: Gilles <[email protected]> Gerrit-Reviewer: MarkTraceur <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
