debugGameLog

This commit is contained in:
Natsumi
2022-01-05 02:05:46 +13:00
parent 88c696c3e2
commit 9ff54d101a
+18 -1
View File
@@ -4165,7 +4165,8 @@ speechSynthesis.getVoices();
$app.data.debugWebRequests = false; $app.data.debugWebRequests = false;
$app.data.debugWebSocket = false; $app.data.debugWebSocket = false;
$app.data.debugUserDiff = false; $app.data.debugUserDiff = false;
$app.data.debugPhotonLogging = true; $app.data.debugPhotonLogging = false;
$app.data.debugGameLog = false;
$app.data.APILastOnline = new Map(); $app.data.APILastOnline = new Map();
@@ -7824,6 +7825,13 @@ speechSynthesis.getVoices();
rawLogs[2], rawLogs[2],
rawLogs.slice(3) rawLogs.slice(3)
); );
if (
this.debugGameLog &&
gameLog.type !== 'photon-id' &&
gameLog.type !== 'api-request'
) {
console.log('gameLog:', gameLog);
}
this.addGameLogEntry(gameLog, this.lastLocation.location); this.addGameLogEntry(gameLog, this.lastLocation.location);
}; };
@@ -9333,6 +9341,9 @@ speechSynthesis.getVoices();
} }
}); });
var json = JSON.parse(response.data); var json = JSON.parse(response.data);
if (this.debugWebRequests) {
console.log(json, response);
}
if (response.status === 200) { if (response.status === 200) {
data = json; data = json;
} else { } else {
@@ -17985,6 +17996,9 @@ speechSynthesis.getVoices();
}); });
this.checkingForVRCXUpdate = false; this.checkingForVRCXUpdate = false;
var json = JSON.parse(response.data); var json = JSON.parse(response.data);
if (this.debugWebRequests) {
console.log(json, response);
}
var releases = []; var releases = [];
if (typeof json !== 'object' || json.message) { if (typeof json !== 'object' || json.message) {
$app.$message({ $app.$message({
@@ -18029,6 +18043,9 @@ speechSynthesis.getVoices();
}); });
this.checkingForVRCXUpdate = false; this.checkingForVRCXUpdate = false;
var json = JSON.parse(response.data); var json = JSON.parse(response.data);
if (this.debugWebRequests) {
console.log(json, response);
}
if (json === Object(json) && json.name && json.published_at) { if (json === Object(json) && json.name && json.published_at) {
this.latestAppVersion = `${json.name} (${formatDate( this.latestAppVersion = `${json.name} (${formatDate(
json.published_at, json.published_at,