accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1452982 - /accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java
Date Tue, 05 Mar 2013 20:28:48 GMT
Author: vines
Date: Tue Mar  5 20:28:47 2013
New Revision: 1452982

URL: http://svn.apache.org/r1452982
Log:
ACCUMULO-1151 - better debug on failure


Modified:
    accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java

Modified: accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java?rev=1452982&r1=1452981&r2=1452982&view=diff
==============================================================================
--- accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java
(original)
+++ accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/Module.java
Tue Mar  5 20:28:47 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);



Mime
View raw message