mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
Better Sentry implementation.
This commit is contained in:
parent
36a2e72fe8
commit
f6e8d09522
@ -1,5 +1,8 @@
|
|||||||
ready(function(){
|
ready(function(){
|
||||||
Sentry.init({ dsn: 'https://f80fd3ea297141a8bdc04ce812762f39@sentry.io/1513427' });
|
Sentry.init({
|
||||||
|
dsn: 'https://f80fd3ea297141a8bdc04ce812762f39@sentry.io/1513427',
|
||||||
|
release: require('./package.json').version,
|
||||||
|
});
|
||||||
const settings = require('electron-settings');
|
const settings = require('electron-settings');
|
||||||
const fixPath = require('fix-path');
|
const fixPath = require('fix-path');
|
||||||
document.isStarting = true;
|
document.isStarting = true;
|
||||||
@ -60,6 +63,7 @@ function applyRyzenSettings() {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
notification('danger', `Unknown option "${option}".`);
|
notification('danger', `Unknown option "${option}".`);
|
||||||
appendLog(`applyRyzenSettings(): ${error}`);
|
appendLog(`applyRyzenSettings(): ${error}`);
|
||||||
|
Sentry.captureException(new Error(`applyRyzenSettings(): ${error}`));
|
||||||
}
|
}
|
||||||
if (options_data[option_name].ryzenadj_value_convert) {
|
if (options_data[option_name].ryzenadj_value_convert) {
|
||||||
value = ryzenAdjConvert[
|
value = ryzenAdjConvert[
|
||||||
@ -84,6 +88,7 @@ function applyRyzenSettings() {
|
|||||||
return setTimeout(applyRyzenSettings, 500);
|
return setTimeout(applyRyzenSettings, 500);
|
||||||
}
|
}
|
||||||
notification('danger', err + '<br/>' + output);
|
notification('danger', err + '<br/>' + output);
|
||||||
|
Sentry.captureException(new Error(err + ' - ' + output));
|
||||||
}
|
}
|
||||||
else if (output) {
|
else if (output) {
|
||||||
notification('success', 'Ryzenadj output:<br/>' + output);
|
notification('success', 'Ryzenadj output:<br/>' + output);
|
||||||
|
@ -444,6 +444,7 @@ function recreateShortcut() {
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
appendLog(`recreateShortcut() ${error}`);
|
appendLog(`recreateShortcut() ${error}`);
|
||||||
|
Sentry.captureException(`recreateShortcut() ${error}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@ function preset_import() {
|
|||||||
presetsToBeImported = JSON.parse(presetsToBeImported);
|
presetsToBeImported = JSON.parse(presetsToBeImported);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
notification('danger', 'Unable to import presets, malformed data.');
|
notification('danger', 'Unable to import presets, malformed data.');
|
||||||
console.error(e);
|
appendLog(`preset_import() ${e}`);
|
||||||
|
Sentry.captureException(`recreateShortcut() ${e}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user