Skip to content

Commit

Permalink
potentially fix log dir error
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Apr 11, 2024
1 parent fe0c1f9 commit 0ee9286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .docker/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
nginx

# Run Node
cd /opt/backend/src && node Application.js
cd /opt/backend && node src/Application.js
2 changes: 1 addition & 1 deletion backend/src/utility/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function clearLogEntries() {
const directory = "log";

fs.readdir(directory, (err, files) => {
if (err) throw err;
if (err) return;

for (const file of files) {
fs.writeFile(path.resolve(directory, file), "", { flag: "w+" }, err => {
Expand Down

0 comments on commit 0ee9286

Please sign in to comment.