feat: remove uneeded logs

This commit is contained in:
Zamitto 2024-10-23 21:14:04 -03:00
parent dc413736e8
commit 4a3ba43dae

View file

@ -123,7 +123,7 @@ const jsonParse = (filePath: string) => {
const processRazor1911 = (filePath: string): UnlockedAchievement[] => { const processRazor1911 = (filePath: string): UnlockedAchievement[] => {
try { try {
const fileContent = readFileSync(filePath, "utf-8"); const fileContent = readFileSync(filePath, "utf-8");
achievementsLogger.log("processing file", filePath, fileContent);
const lines = const lines =
fileContent.charCodeAt(0) === 0xfeff fileContent.charCodeAt(0) === 0xfeff
? fileContent.slice(1).split(/[\r\n]+/) ? fileContent.slice(1).split(/[\r\n]+/)
@ -141,7 +141,7 @@ const processRazor1911 = (filePath: string): UnlockedAchievement[] => {
}); });
} }
} }
achievementsLogger.log("processing file", achievements);
return achievements; return achievements;
} catch (err) { } catch (err) {
achievementsLogger.error(`Error processing ${filePath}`, err); achievementsLogger.error(`Error processing ${filePath}`, err);