Browse Source

Improved logging

Abhinav Sarkar 7 years ago
parent
commit
e77c187e2e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/main/scala/net/abhinavsarkar/ircsearch/lucene/Indexer.scala

+ 2
- 1
src/main/scala/net/abhinavsarkar/ircsearch/lucene/Indexer.scala View File

@@ -2,6 +2,7 @@ package net.abhinavsarkar.ircsearch.lucene
2 2
 
3 3
 import java.io.File
4 4
 import java.util.ArrayList
5
+import java.util.Date
5 6
 import java.util.concurrent.{ Executors, Future, PriorityBlockingQueue, TimeUnit }
6 7
 import java.util.concurrent.locks.ReentrantLock
7 8
 
@@ -212,7 +213,7 @@ object Indexer extends Logging {
212 213
       val ctxAft = new TextField(ChatLine.CTXA, ctxToStr(chatLine.contextAfter), Field.Store.YES)
213 214
       indexWriter.addDocument(List(ts, user, msg, ctxBfr, ctxAft), indexWriter.getAnalyzer)
214 215
       logger.debug("Indexed : [{} {} {}] [{}] {}: {}",
215
-          server, channel, botName, chatLine.timestamp.toString, chatLine.user, chatLine.message)
216
+          server, channel, botName, new Date(chatLine.timestamp), chatLine.user, chatLine.message)
216 217
     }
217 218
   }
218 219
 

Loading…
Cancel
Save