incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r885736 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala
Date Tue, 01 Dec 2009 11:17:26 GMT
Author: rhirsch
Date: Tue Dec  1 11:17:25 2009
New Revision: 885736

URL: http://svn.apache.org/viewvc?rev=885736&view=rev
Log:
[ESME-139] Access-related changes should be logged
Just added log if new pool is created

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala?rev=885736&r1=885735&r2=885736&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/AccessPoolMgr.scala Tue
Dec  1 11:17:25 2009
@@ -44,10 +44,14 @@
 
 import java.util.Date
 import java.text.{DateFormat,SimpleDateFormat}
+import java.util.logging._
+
 /**
  * Manage the sitemap and related snippets for Access Pools
  */
 object AccessPoolMgr {
+  val logger: Logger = Logger.getLogger("org.apache.esme.lib.AccessPoolMgr")
+  logger.setLevel(Level.INFO)
   def loggedIn_? = User.loggedIn_?
 
   val ifIsLoggedIn = If(loggedIn_? _, strFuncToFailMsg(() => S.?("base_error_not_logged_in")))
@@ -85,6 +89,7 @@
               if(privilegeSaved && user.isDefined) {
                 Distributor ! Distributor.AllowUserInPool(user.get.id.is, p.id.is)
                 S.notice(S.?("base_pool_msg_new_pool"))
+                logger.info("ACCESS: " + S.?("base_pool_msg_new_pool") + " " + name)
               } else
                 S.error(S.?("base_error_general"))
             case _ => S.error(S.?("base_error_general"))



Mime
View raw message