Skip to content

Commit

Permalink
okay this actually works for real
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueBurger committed Aug 25, 2024
1 parent ea7e475 commit 6a74dbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,13 @@ async function findLogPath() {
} else if(logLocationInConfig == "disabled") {
return null;
}
if(!await exists(logLocationInConfig)) fs.mkdirSync(logLocationInConfig);
try {
if(!await exists(logLocationInConfig)) fs.mkdirSync(logLocationInConfig);

} catch(err) {
console.error("Cannot make logdir that should already exist... This is bad", err);
return null;
}
let filePath = path.join(logLocationInConfig, `BurgerPanel ${logger.makeNiceDate(process.platform == "win32")}`);
if(await exists(filePath + ".log")) { // how would this even trigger it changes every second
let i = 0;
Expand Down

0 comments on commit 6a74dbe

Please sign in to comment.