Skip to content

Commit

Permalink
falta testar
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasCaleb committed Jul 10, 2024
1 parent d584ada commit 6e8ab1c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ public static function init(\core\event\base $event) {
public static function geterros(\core\event\base $event) {
$config = get_config('tool_sentry');
if ($config->activate) {
\Sentry\configureScope(function (\Sentry\State\Scope $scope,$event){
$scope->setUser(['id' => $event->userid]);
});
\Sentry\captureLastError();
}
}
Expand Down
1 change: 1 addition & 0 deletions lang/en/tool_sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
$string['activate'] = "Activate Sentry Plugin";
$string['activate_desc'] = "Activate Sentry to send information to the configured dns";
$string['dns'] = "Sentry Server DNS";
$string['dns_desc'] = "Sentry server address with auth token";
$string['privacy:metadata'] = 'The plugin does not store any personal data. However, it send the IP of a user that had an error to the sentry server configured in it.';
$string['release'] = "Sentry Release";
$string['release_desc'] = "Sets the release. If not set, the SDK will try to automatically configure a release out of the box but it's a better idea to manually set it to guarantee that the release is in sync with your deploy integrations.";
Expand Down
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die;

global $CFG, $ADMIN;

\tool_sentry\helper::init();
if (is_siteadmin()) {
if (!$ADMIN->locate('tool_sentry')) {
$page = new admin_settingpage('sentryconfig', get_string('pluginsettigs', 'tool_sentry'));
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

// Plugin version.
$plugin->version = 2024071007;
$plugin->version = 2024071010;

// Required Moodle version.
$plugin->requires = 2013050100; // Requires this Moodle version - at least 2.0.
Expand Down

0 comments on commit 6e8ab1c

Please sign in to comment.