1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Temporarily disabled Sentry

Trying to see if it's affecting performance.
This commit is contained in:
Jon Ziebell 2024-05-25 07:09:52 -04:00
parent 960e2e491b
commit 67cb3e421e
3 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ window.addEventListener('resize', rocket.throttle(100, function() {
var $ = rocket.extend(rocket.$, rocket);
$.ready(function() {
moment.suppressDeprecationWarnings = true;
if (window.environment === 'live') {
/*if (window.environment === 'live') {
Sentry.init({
'release': window.commit,
'dsn': 'https://af9fd2cf6cda49dcb93dcaf02fe39fc6@sentry.io/3736982',
@ -76,6 +76,6 @@ $.ready(function() {
'replaysSessionSampleRate': 0.01, // 1%
'replaysOnErrorSampleRate': 1.0, // 100%
});
}
}*/
(new beestat.layer.load()).render();
});

View File

@ -11,7 +11,7 @@ echo '<script>window.commit = \'' . $setting->get('commit') . '\';</script>';
if($setting->get('environment') === 'dev' || $setting->get('environment') === 'dev_live') {
// External libraries
echo '<script src="/js/lib/sentry/sentry.js"></script>' . PHP_EOL;
// echo '<script src="/js/lib/sentry/sentry.js"></script>' . PHP_EOL;
echo '<script src="/js/lib/rocket/rocket.js"></script>' . PHP_EOL;
echo '<script src="/js/lib/moment/moment.js"></script>' . PHP_EOL;
echo '<script src="/js/lib/highcharts/highcharts.js"></script>' . PHP_EOL;

View File

@ -137,11 +137,11 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
api.set_callback(function(response) {
beestat.cache.set('user', response.user);
Sentry.configureScope(function(scope) {
/*Sentry.configureScope(function(scope) {
scope.setUser({
'id': beestat.user.get().user_id
});
});
});*/
beestat.cache.set('thermostat', response.thermostat);
beestat.cache.set('sensor', response.sensor);