Skip to content

Commit

Permalink
fix: remove Date.toLocaleString() in logfile names to prevent slashes (
Browse files Browse the repository at this point in the history
  • Loading branch information
phlmn authored and DeMoorJasper committed Nov 17, 2018
1 parent badc3ab commit 4773d65
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/logger/src/Logger.js
Expand Up @@ -75,10 +75,7 @@ class Logger {
if (this.logLevel > 4) {
if (!this.logFile) {
this.logFile = fs.createWriteStream(
path.join(
process.cwd(),
`parcel-debug-${currDate.toLocaleDateString()}@${currDate.toLocaleTimeString()}.log`
)
path.join(process.cwd(), `parcel-debug-${currDate.toISOString()}.log`)
);
}
this.logFile.write(stripAnsi(message) + '\n');
Expand Down

0 comments on commit 4773d65

Please sign in to comment.