From a0628cc873652295fb6c0cec896fd095b524c6bd Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Sun, 16 Oct 2022 23:10:55 +0200 Subject: [PATCH] remove/disable console logs --- app.js | 2 -- config.js | 1 - osuUtil.js | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 5569b99..b0df21e 100644 --- a/app.js +++ b/app.js @@ -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" }) diff --git a/config.js b/config.js index 3e879a3..216c503 100644 --- a/config.js +++ b/config.js @@ -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/) diff --git a/osuUtil.js b/osuUtil.js index be13ea3..6f99811 100644 --- a/osuUtil.js +++ b/osuUtil.js @@ -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;