PIG-4641: Print the instance of Object without using toString() (sandyridgeracer via rohini)

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1740891 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 0fef5e8..1a1ecbf 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -24,6 +24,8 @@
 
 IMPROVEMENTS
 
+PIG-4641: Print the instance of Object without using toString() (sandyridgeracer via rohini)
+
 PIG-4455: Should use DependencyOrderWalker instead of DepthFirstWalker in MRPrinter (zjffdu via rohini)
 
 PIG-4866: Do not serialize PigContext in configuration to the backend (rohini)
diff --git a/src/org/apache/pig/scripting/js/JsFunction.java b/src/org/apache/pig/scripting/js/JsFunction.java
index 3b6ba04..6115798 100644
--- a/src/org/apache/pig/scripting/js/JsFunction.java
+++ b/src/org/apache/pig/scripting/js/JsFunction.java
@@ -95,7 +95,7 @@
 
     private void debugConvertPigToJS(int depth, String pigType, Object value, Schema schema) {
         if (LOG.isDebugEnabled()) {
-            LOG.debug(indent(depth)+"converting from Pig " + pigType + " " + value + " using " + stringify(schema));
+            LOG.debug(indent(depth)+"converting from Pig " + pigType + " " + toString(value) + " using " + stringify(schema));
         }
     }