From 8722f35f91c851389fc5b47d23d33ba2dfd67ee5 Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 13 Jul 2011 11:47:58 -0700 Subject: [PATCH] bug 10691: add more log --- .../com/cloud/storage/snapshot/SnapshotSchedulerImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index 0f2b017e258..3d5dfb0697a 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -392,8 +392,12 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler { TimerTask timerTask = new TimerTask() { @Override public void run() { - Date currentTimestamp = new Date(); - poll(currentTimestamp); + try { + Date currentTimestamp = new Date(); + poll(currentTimestamp); + } catch (Throwable t) { + s_logger.warn("Catch throwable in snapshot scheduler " + t.toString(), t); + } } }; _testClockTimer = new Timer("SnapshotPollTask");