mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyubi...@apache.org
Subject svn commit: r1582020 - /mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala
Date Wed, 26 Mar 2014 19:20:07 GMT
Author: dlyubimov
Date: Wed Mar 26 19:20:07 2014
New Revision: 1582020

URL: http://svn.apache.org/r1582020
Log:
MAHOUT-1346: don't evaluate debug printout in no-debug mode

Modified:
    mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala

Modified: mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala
URL: http://svn.apache.org/viewvc/mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala?rev=1582020&r1=1582019&r2=1582020&view=diff
==============================================================================
--- mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala
(original)
+++ mahout/trunk/spark/src/main/scala/org/apache/mahout/sparkbindings/decompositions/DQR.scala
Wed Mar 26 19:20:07 2014
@@ -30,12 +30,12 @@ object DQR {
     val inCoreAtA = AtA.collect
     implicit val sc = AtA.rdd.sparkContext
 
-    s_log.debug("A'A=\n%s\n".format(inCoreAtA))
+    if (s_log.isDebugEnabled) s_log.debug("A'A=\n%s\n".format(inCoreAtA))
 
     val ch = chol(inCoreAtA)
     val inCoreR = (ch.getL cloned) t
 
-    s_log.debug("R=\n%s\n".format(inCoreR))
+    if (s_log.isDebugEnabled) s_log.debug("R=\n%s\n".format(inCoreR))
 
     if (checkRankDeficiency && !ch.isPositiveDefinite)
       throw new IllegalArgumentException("R is rank-deficient.")



Mime
View raw message