Liron Ar has uploaded a new change for review.

Change subject: core: log using INFO logging level rather than ERROR
......................................................................

core: log using INFO logging level rather than ERROR

When EventQueueMonitor cancels events, print the log using INFO level
rather then ERROR.

Change-Id: If192b3ccc5f5310de4fd80ca7fb4a7d74d52e1df
Bug-Url: https://bugzilla.redhat.com/921462
Signed-off-by: Liron Aravot <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/11/13311/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
index a1ecff8..8d5da57 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
@@ -3,6 +3,7 @@
 import java.util.LinkedList;
 import java.util.Map;
 import java.util.concurrent.Callable;
+import java.util.concurrent.CancellationException;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.Future;
@@ -50,6 +51,10 @@
         if (task != null) {
             try {
                 return task.get();
+            } catch (CancellationException e) {
+                log.infoFormat("Failed to submit event using submitEventSync 
(the event was cancelled)- pool {0} , exception {1}",
+                        event.getStoragePoolId(),
+                        e);
             } catch (Exception e) {
                 log.errorFormat("Failed at submitEventSync, for pool {0} with 
exception {1}",
                         event.getStoragePoolId(), e);


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If192b3ccc5f5310de4fd80ca7fb4a7d74d52e1df
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to