Ravi Nori has uploaded a new change for review.

Change subject: core : FullListVdsCommand log message appears wrong with java 
class ref
......................................................................

core : FullListVdsCommand log message appears wrong with java class ref

FullListVdsCommand FINISH log message has
unexpanded data and prints the class reference
instead of the data.

Change-Id: I0d6ff48e2c5a25dd659a8777b70fdcaaa9a3d840
Bug-Url: https://bugzilla.redhat.com/1054410
Signed-off-by: Ravi Nori <rn...@redhat.com>
---
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/VdcCommandBase.java
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/00/23600/1

diff --git 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/VdcCommandBase.java
 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/VdcCommandBase.java
index 106ef51..7ffe927 100644
--- 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/VdcCommandBase.java
+++ 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/VdcCommandBase.java
@@ -6,6 +6,9 @@
 import org.ovirt.engine.core.utils.log.Logged.LogLevel;
 import org.ovirt.engine.core.utils.log.LoggedUtils;
 
+import java.util.Arrays;
+import java.util.Map;
+
 @Logged(errorLevel = LogLevel.WARN)
 public abstract class VdcCommandBase {
 
@@ -26,7 +29,7 @@
 
         try {
             executeCommand();
-            LoggedUtils.logReturn(log, logId, this, getReturnValue());
+            LoggedUtils.logReturn(log, logId, this, getReturnValue() != null 
&& getReturnValue() instanceof Map[] ? Arrays.asList((Map[])getReturnValue()) : 
getReturnValue());
         } catch (Exception e) {
             LoggedUtils.logError(log, logId, this, e);
             // throw e;


-- 
To view, visit http://gerrit.ovirt.org/23600
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d6ff48e2c5a25dd659a8777b70fdcaaa9a3d840
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to