mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: remove uneeded logs
This commit is contained in:
parent
dc413736e8
commit
4a3ba43dae
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue