Reduce log level for the all achievements and player achievements listings

This commit is contained in:
Heikki Aitakangas 2022-01-13 01:59:38 +02:00
parent c7c303c551
commit f8e64a1b4f

@ -9,9 +9,9 @@ async function enableAchievementsInterval(window) {
// This is backward but the game fills in an array called `document.achievements` and we retrieve it from // This is backward but the game fills in an array called `document.achievements` and we retrieve it from
// here. Hey if it works it works. // here. Hey if it works it works.
const steamAchievements = greenworks.getAchievementNames(); const steamAchievements = greenworks.getAchievementNames();
log.info(`All Steam achievements ${JSON.stringify(steamAchievements)}`); log.debug(`All Steam achievements ${JSON.stringify(steamAchievements)}`);
const playerAchieved = (await Promise.all(steamAchievements.map(checkSteamAchievement))).filter(name => !!name); const playerAchieved = (await Promise.all(steamAchievements.map(checkSteamAchievement))).filter(name => !!name);
log.info(`Player has Steam achievements ${JSON.stringify(playerAchieved)}`); log.debug(`Player has Steam achievements ${JSON.stringify(playerAchieved)}`);
const intervalID = setInterval(async () => { const intervalID = setInterval(async () => {
try { try {
const playerAchievements = await window.webContents.executeJavaScript("document.achievements"); const playerAchievements = await window.webContents.executeJavaScript("document.achievements");