You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sn...@apache.org on 2015/03/17 18:05:29 UTC

cassandra git commit: UDF shouldn't log errors at ERROR

Repository: cassandra
Updated Branches:
  refs/heads/trunk ac3062188 -> 287366752


UDF shouldn't log errors at ERROR

Patch by Robert Stupp for CASSANDRA-8980


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/28736675
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/28736675
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/28736675

Branch: refs/heads/trunk
Commit: 2873667527b555221622579a849cd294ec3ea42c
Parents: ac30621
Author: Robert Stupp <sn...@snazy.de>
Authored: Tue Mar 17 18:03:41 2015 +0100
Committer: Robert Stupp <sn...@snazy.de>
Committed: Tue Mar 17 18:03:41 2015 +0100

----------------------------------------------------------------------
 .../apache/cassandra/cql3/functions/JavaSourceUDFFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/28736675/src/java/org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java b/src/java/org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java
index 2fb855a..3033d98 100644
--- a/src/java/org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java
+++ b/src/java/org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java
@@ -202,7 +202,7 @@ public final class JavaSourceUDFFactory
      *     }
      *     catch (Throwable t)
      *     {
-     *         logger.error("Invocation of function '{}' failed", this, t);
+     *         logger.info("Invocation of function '{}' failed", this, t);
      *         if (t instanceof VirtualMachineError)
      *             throw (VirtualMachineError)t;
      *         throw org.apache.cassandra.exceptions.FunctionExecutionException.build(this, t);
@@ -244,7 +244,7 @@ public final class JavaSourceUDFFactory
                     "  }\n" +
                     "  catch (Throwable t)\n" +
                     "  {\n" +
-                    "    logger.error(\"Invocation of function '{}' failed\", this, t);\n" +
+                    "    logger.info(\"Invocation of function '{}' failed\", this, t);\n" +
                     // handle OutOfMemoryError and other fatals not here!
                     "    if (t instanceof VirtualMachineError)\n" +
                     "      throw (VirtualMachineError)t;\n" +