]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/parse-log.ts
It's not the week-end yet
[github/Chocobozzz/PeerTube.git] / scripts / parse-log.ts
index 5f4480c8827c608e0101e56940a66d5673f6e71a..1617e44466b925bdf448d3393258654d31a49e21 100755 (executable)
@@ -85,6 +85,8 @@ function run () {
     const files = await getFiles()
 
     for (const file of files) {
+      if (file === 'peertube-audit.log') continue
+
       console.log('Opening %s.', file)
 
       const stream = createReadStream(file)
@@ -140,7 +142,7 @@ function toTimeFormat (time: string) {
 
   if (isNaN(timestamp) === true) return 'Unknown date'
 
-  return new Date(timestamp).toISOString()
+  return new Date(timestamp).toLocaleString()
 }
 
 function containsTags (loggerTags: string[], optionsTags: string[]) {