Improve debug message when the scheduler prepare to snapshot (volume 'id' and add volume name)

Signed-off-by: Milamber <milamber@apache.org>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #676

(cherry picked from commit 606afe341dce93b7efe88d0989029848947f25aa)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Milamber 2015-06-22 21:44:03 +00:00 committed by Rohit Yadav
parent f7778194f0
commit 72e55029ef

View File

@ -254,7 +254,8 @@ public class SnapshotSchedulerImpl extends ManagerBase implements SnapshotSchedu
if (s_logger.isDebugEnabled()) {
final Date scheduledTimestamp = snapshotToBeExecuted.getScheduledTimestamp();
displayTime = DateUtil.displayDateInTimezone(DateUtil.GMT_TIMEZONE, scheduledTimestamp);
s_logger.debug("Scheduling 1 snapshot for volume " + volumeId + " for schedule id: " + snapshotToBeExecuted.getId() + " at " + displayTime);
s_logger.debug("Scheduling 1 snapshot for volume id " + volumeId + " (volume name:" +
volume.getName() + ") for schedule id: " + snapshotToBeExecuted.getId() + " at " + displayTime);
}
tmpSnapshotScheduleVO = _snapshotScheduleDao.acquireInLockTable(snapshotScheId);