|
|
@@ -67,6 +67,7 @@ var LibJitsiMeet = {
|
|
67
|
67
|
logLevels: Logger.levels,
|
|
68
|
68
|
mediaDevices: JitsiMediaDevices,
|
|
69
|
69
|
init: function (options) {
|
|
|
70
|
+ var logObject, attr;
|
|
70
|
71
|
Statistics.audioLevelsEnabled = !options.disableAudioLevels;
|
|
71
|
72
|
|
|
72
|
73
|
if(typeof options.audioLevelsInterval === 'number') {
|
|
|
@@ -78,16 +79,28 @@ var LibJitsiMeet = {
|
|
78
|
79
|
this.getGlobalOnErrorHandler.bind(this));
|
|
79
|
80
|
}
|
|
80
|
81
|
|
|
81
|
|
- // Lets send some general stats useful for debugging problems
|
|
|
82
|
+ // Log deployment-specific information, if available.
|
|
82
|
83
|
if (window.jitsiRegionInfo
|
|
83
|
84
|
&& Object.keys(window.jitsiRegionInfo).length > 0) {
|
|
84
|
|
- // remove quotes to make it prettier
|
|
85
|
|
- Statistics.sendLog(
|
|
86
|
|
- JSON.stringify(window.jitsiRegionInfo).replace(/\"/g, ""));
|
|
|
85
|
+ logObject = {};
|
|
|
86
|
+ for (attr in window.jitsiRegionInfo) {
|
|
|
87
|
+ if (window.jitsiRegionInfo.hasOwnProperty(attr)) {
|
|
|
88
|
+ logObject[attr] = window.jitsiRegionInfo[attr];
|
|
|
89
|
+ }
|
|
|
90
|
+ }
|
|
|
91
|
+
|
|
|
92
|
+ logObject.id = "deployment_info";
|
|
|
93
|
+ Statistics.sendLog(JSON.stringify(logObject));
|
|
87
|
94
|
}
|
|
88
|
95
|
|
|
89
|
|
- if(this.version)
|
|
90
|
|
- Statistics.sendLog("LibJitsiMeet:" + this.version);
|
|
|
96
|
+ if(this.version) {
|
|
|
97
|
+ logObject = {
|
|
|
98
|
+ id: "component_version",
|
|
|
99
|
+ component: "lib-jitsi-meet",
|
|
|
100
|
+ version: this.version
|
|
|
101
|
+ }
|
|
|
102
|
+ Statistics.sendLog(JSON.stringify(logObject));
|
|
|
103
|
+ }
|
|
91
|
104
|
|
|
92
|
105
|
return RTC.init(options || {});
|
|
93
|
106
|
},
|
|
|
@@ -180,7 +193,11 @@ var LibJitsiMeet = {
|
|
180
|
193
|
// User cancelled action is not really an error, so only
|
|
181
|
194
|
// log it as an event to avoid having conference classified
|
|
182
|
195
|
// as partially failed
|
|
183
|
|
- Statistics.sendLog(error.message);
|
|
|
196
|
+ var logObject = {
|
|
|
197
|
+ id: "chrome_extension_user_canceled",
|
|
|
198
|
+ message: error.message
|
|
|
199
|
+ };
|
|
|
200
|
+ Statistics.sendLog(JSON.stringify(logObject));
|
|
184
|
201
|
} else {
|
|
185
|
202
|
// Report gUM failed to the stats
|
|
186
|
203
|
Statistics.sendGetUserMediaFailed(error);
|