[mirotalksfu] - fix sentry
هذا الالتزام موجود في:
@@ -178,25 +178,32 @@ const restApi = {
|
||||
// Sentry monitoring
|
||||
const sentryEnabled = config.integrations?.sentry?.enabled || false;
|
||||
const sentryDSN = config.integrations.sentry.DSN;
|
||||
const sentryTracesSampleRate = config.integrations.sentry.tracesSampleRate;
|
||||
if (sentryEnabled) {
|
||||
const sentryTracesSampleRate = parseFloat(config.integrations.sentry.tracesSampleRate || '0.0');
|
||||
if (sentryEnabled && typeof sentryDSN === 'string' && sentryDSN.trim()) {
|
||||
log.info('Sentry monitoring started...');
|
||||
|
||||
Sentry.init({
|
||||
dsn: sentryDSN,
|
||||
integrations: [
|
||||
Sentry.captureConsoleIntegration({
|
||||
// ['log', 'info', 'warn', 'error', 'debug', 'assert']
|
||||
levels: ['error'],
|
||||
}),
|
||||
],
|
||||
tracesSampleRate: sentryTracesSampleRate,
|
||||
});
|
||||
/*
|
||||
log.log('test-log');
|
||||
log.info('test-info');
|
||||
log.warn('test-warning');
|
||||
log.error('test-error');
|
||||
log.debug('test-debug');
|
||||
*/
|
||||
|
||||
const originalWarn = console.warn;
|
||||
const originalError = console.error;
|
||||
|
||||
console.warn = function (...args) {
|
||||
Sentry.captureMessage(args.join(' '), 'warning');
|
||||
originalWarn.apply(console, args);
|
||||
};
|
||||
|
||||
console.error = function (...args) {
|
||||
args[0] instanceof Error
|
||||
? Sentry.captureException(args[0])
|
||||
: Sentry.captureException(new Error(args.join(' ')));
|
||||
originalError.apply(console, args);
|
||||
};
|
||||
|
||||
// log.error('Sentry error', { foo: 'bar' });
|
||||
// log.warn('Sentry warning');
|
||||
}
|
||||
|
||||
// Handle WebHook
|
||||
|
||||
4
package-lock.json
مولّد
4
package-lock.json
مولّد
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.8.77",
|
||||
"version": "1.8.78",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.8.77",
|
||||
"version": "1.8.78",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.842.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.8.77",
|
||||
"version": "1.8.78",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -64,7 +64,7 @@ let BRAND = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: '<strong>WebRTC SFU v1.8.77</strong>',
|
||||
title: '<strong>WebRTC SFU v1.8.78</strong>',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.77
|
||||
* @version 1.8.78
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -5479,7 +5479,7 @@ function showAbout() {
|
||||
position: 'center',
|
||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.77',
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.78',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.77
|
||||
* @version 1.8.78
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم