incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r953604 - in /incubator/esme/trunk/server/src/main/scala: bootstrap/liftweb/Boot.scala org/apache/esme/actor/HttpSender.scala org/apache/esme/model/Message.scala org/apache/esme/model/User.scala
Date Fri, 11 Jun 2010 08:18:31 GMT
Author: rhirsch
Date: Fri Jun 11 08:18:31 2010
New Revision: 953604

URL: http://svn.apache.org/viewvc?rev=953604&view=rev
Log:
[ESME-226] reduce log entries 

Modified:
    incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/HttpSender.scala
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala

Modified: incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala?rev=953604&r1=953603&r2=953604&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala Fri Jun 11 08:18:31
2010
@@ -280,7 +280,7 @@ object RequestAnalyzer {
   def analyze(req: Box[Req], time: Long, queries: List[(String, Long)]): Unit = {
     val longQueries = (queries.filter(_._2 > 30))
     if (time > 50 || longQueries.?) {
-      Log.info("Request " + req.map(_.uri).openOr("No Request") +
+      Log.debug("Request " + req.map(_.uri).openOr("No Request") +
           " took " + time + " query " + longQueries.comma)
     }
   }
@@ -303,9 +303,9 @@ object SessionInfoDumper extends LiftAct
         rt.gc
 
         val dateStr: String = timeNow.toString
-        Log.info("[MEMDEBUG] At " + dateStr + " Number of open sessions: " + sessions.size)
-        Log.info("[MEMDEBUG] Free Memory: " + pretty(rt.freeMemory))
-        Log.info("[MEMDEBUG] Total Memory: " + pretty(rt.totalMemory))
+        Log.debug("[MEMDEBUG] At " + dateStr + " Number of open sessions: " + sessions.size)
+        Log.debug("[MEMDEBUG] Free Memory: " + pretty(rt.freeMemory))
+        Log.debug("[MEMDEBUG] Total Memory: " + pretty(rt.totalMemory))
       }
 
   }

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/HttpSender.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/HttpSender.scala?rev=953604&r1=953603&r2=953604&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/HttpSender.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/actor/HttpSender.scala Fri
Jun 11 08:18:31 2010
@@ -117,8 +117,8 @@ object HttpSender extends LiftActor with
 
     try {
       httpClient.executeMethod(poster)
-      Log.info(poster.getStatusText)
-      Log.info(poster.getResponseBodyAsString)
+      Log.debug(poster.getStatusText)
+      Log.debug(poster.getResponseBodyAsString)
     } finally {
       poster.releaseConnection
     }

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=953604&r1=953603&r2=953604&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Fri Jun
11 08:18:31 2010
@@ -146,7 +146,7 @@ object Message extends Message with Long
   def search(searchTerm: String, following: List[User], numHits: Int): List[Message] = {
     val users:List[String] = following.map(user => user.nickname)
 
-    logger.info("Inside Message.search() with user list "+(users.mkString(", ")))
+    logger.debug("Inside Message.search() with user list "+(users.mkString(", ")))
 
     (for(session <- compass.map(_.openSession()); user <- User.currentUser) yield {
         var tx:CompassTransaction = null
@@ -164,13 +164,13 @@ object Message extends Message with Long
           .addMust( followingQuery.toQuery )
           .toQuery()
 
-          logger.info("query is "+query.toString)
+          logger.debug("query is "+query.toString)
 
           val hitlist = query
           .addSort("when", CompassQuery.SortPropertyType.STRING, CompassQuery.SortDirection.REVERSE)
           .hits().detach(0, numHits)
 
-          logger.info("Detached hits: "+hitlist.totalLength)
+          logger.debug("Detached hits: "+hitlist.totalLength)
 
           val resourceList = hitlist.getResources.toList.asInstanceOf[List[Resource]]
 
@@ -210,7 +210,7 @@ object Message extends Message with Long
       case _ => Nil
     }                                           
     val modifiedQueryParams = by ++ newQueryParams
-    logger.info("Modified query: " + modifiedQueryParams)
+    logger.debug("Modified query: " + modifiedQueryParams)
     super.findMapDb(dbId, modifiedQueryParams:_*)(f)
   }
 
@@ -535,7 +535,7 @@ class Message extends LongKeyedMapper[Me
             tx = session.beginTransaction()
 
             val msgResource = session.getResource(clazz, id) match {
-              case null =>  Message.logger.info("Saving entity to lucene in wordFrequencies")
+              case null =>  Message.logger.debug("Saving entity to lucene in wordFrequencies")
                 session.save(this)
                 session.loadResource(clazz, id)  // throws exception if not found
 
@@ -543,7 +543,7 @@ class Message extends LongKeyedMapper[Me
             }
 
             val textTermFreqs:TermFreqVector = LuceneHelper.getTermFreqVector(session, msgResource,
"textWords")
-            Message.logger.info("textTermFreqs: "+textTermFreqs)
+            Message.logger.debug("textTermFreqs: "+textTermFreqs)
 
             def termsAndFreq(in: TermFreqVector) = in match {
               case null => Nil

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala?rev=953604&r1=953603&r2=953604&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala Fri Jun 11
08:18:31 2010
@@ -85,14 +85,13 @@ object User extends User with KeyedMetaM
 
 
     def processEntryAdd() {
-        Log.info("processEntryAdd: " + firstName + ", " + lastName)
+        Log.debug("processEntryAdd: " + firstName + ", " + lastName)
     }
 
 
 
     def doSubmit() {
       S.mapSnippet(snippetName, genForm)
-      Log.info("doSubmit: ")
       user.validate ::: auth.validate match {
         case Nil =>
           user.save



Mime
View raw message