You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by vi...@apache.org on 2013/03/05 21:29:32 UTC

svn commit: r1452983 - in /accumulo/trunk: ./ test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java

Author: vines
Date: Tue Mar  5 20:29:32 2013
New Revision: 1452983

URL: http://svn.apache.org/r1452983
Log:
ACCUMULO-1151 - better logging on failure


Modified:
    accumulo/trunk/   (props changed)
    accumulo/trunk/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java

Propchange: accumulo/trunk/
------------------------------------------------------------------------------
  Merged /accumulo/branches/1.5:r1452969-1452982

Modified: accumulo/trunk/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java?rev=1452983&r1=1452982&r2=1452983&view=diff
==============================================================================
--- accumulo/trunk/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java (original)
+++ accumulo/trunk/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java Tue Mar  5 20:29:32 2013
@@ -18,8 +18,10 @@ package org.apache.accumulo.test.randomw
 
 import java.io.File;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Properties;
 import java.util.Random;
@@ -265,10 +267,10 @@ public class Module extends Node {
         log.debug("State information");
         for (String key : new TreeSet<String>(state.getMap().keySet()))  {
           Object value = state.getMap().get(key);
-          String logMsg = "  " + key + ": " + value + ' ';
+          String logMsg = "  " + key + ": ";
           if (value == null)
             logMsg += "null";
-          else if (value instanceof String)
+          else if (value instanceof String || value instanceof Map || value instanceof Collection || value instanceof Number)
             logMsg += value;
           else if (value instanceof byte[])
             logMsg += new String((byte[])value);