remove/disable console logs

This commit is contained in:
HorizonCode 2022-10-16 23:10:55 +02:00
parent 5c87704b10
commit a0628cc873
3 changed files with 2 additions and 6 deletions

2
app.js
View File

@ -33,7 +33,6 @@ const run = () => {
const result = await osuUtil.startOsuWithDevServer(tempOsuPath, "ez-pp.farm", async () => {
await doUpdateCheck(mainWindow);
});
console.log(result);
return result;
})
ipcMain.on('do-update-check', async () => {
@ -111,7 +110,6 @@ async function doUpdateCheck(window) {
const releaseFiles = await osuUtil.getUpdateFiles(releaseStream);
const filesToDownload = await osuUtil.filesThatNeedUpdate(tempOsuPath, releaseFiles);
console.log("sending update check " + (filesToDownload.length > 0 ? "update-available" : "up-to-date"))
window.webContents.send('status_update', {
type: filesToDownload.length > 0 ? "update-available" : "up-to-date"
})

View File

@ -26,7 +26,6 @@ async function get(key, defaultValue) {
}
async function set(key, value) {
console.log("setting " + key + " to " + value);
const configValues = new Map();
const fileStream = await fs.promises.readFile(configLocation, "utf-8");
const lines = fileStream.split(/\r?\n/)

View File

@ -103,14 +103,14 @@ async function filesThatNeedUpdate(osuPath, updateFiles) {
fileName,
fileURL
})
console.log("hashes are not matching", `(${existingFileMD5} - ${fileHash})`);
// console.log("hashes are not matching", `(${existingFileMD5} - ${fileHash})`);
}
} else {
filesToDownload.push({
fileName,
fileURL
});
console.log("new file " + fileName);
// console.log("new file " + fileName);
}
}
return filesToDownload;
@ -142,7 +142,6 @@ async function downloadUpdateFiles(osuPath, filesToUpdate) {
async function startWithDevServer(osuPath, serverDomain, onExit) {
const osuExe = path.join(osuPath, "osu!.exe");
console.log(osuExe);
if (!await fu.existsAsync(osuExe)) return false;
executeUtil.runFile(osuPath, osuExe, ["-devserver", serverDomain], onExit);
return true;