diff --git a/src/server.ts b/src/server.ts index 12ef050..56afff9 100755 --- a/src/server.ts +++ b/src/server.ts @@ -272,13 +272,7 @@ function rotateLog() { '-' + ('0' + (date.getMonth() + 1)).slice(-2) + '-' + - ('0' + date.getDate()).slice(-2) + - ' ' + - ('0' + date.getHours()).slice(-2) + - ':' + - ('0' + date.getMinutes()).slice(-2) + - ':' + - ('0' + date.getSeconds()).slice(-2) + ('0' + date.getDate()).slice(-2) if (utils.FileExists(logFile)) { utils.CopyFile(logFile, logger.logDir + fname) @@ -286,6 +280,9 @@ function rotateLog() { if (utils.FileExists(vlogFile)) { utils.CopyFile(vlogFile, logger.vlogDir + fname) } + + utils.WriteFile(fname, logger.logDir + fname) + utils.WriteFile(fname, logger.vlogDir + fname) } function LogTimerAction() { diff --git a/src/standaloneUtils/rmDuplicates.js b/src/standaloneUtils/rmDuplicates.js index c717fd3..de7c99b 100644 --- a/src/standaloneUtils/rmDuplicates.js +++ b/src/standaloneUtils/rmDuplicates.js @@ -383,6 +383,7 @@ function log(text) { } function writeInSameLine(text, returnToLineStart) { + // TODO: clear line before process.stdout.write(text) if (returnToLineStart) { process.stdout.write('\r')