Skip to content

Commit

Permalink
Overwrite rather than append to log file
Browse files Browse the repository at this point in the history
  • Loading branch information
steve9164 committed Sep 8, 2023
1 parent 52fc543 commit 4c16f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ gulp.task("terriajs-server", function (done) {
default: { terriajsServerArg: [] }
});

const logFile = fs.openSync("./terriajs-server.log", "a");
const logFile = fs.openSync("./terriajs-server.log", "w");
const serverArgs = Array.isArray(options.terriajsServerArg)
? options.terriajsServerArg
: [options.terriajsServerArg];
Expand Down

0 comments on commit 4c16f0d

Please sign in to comment.