issue 384: improved log messages in TakeSnapshotIfNotAlreadyAttached

This commit is contained in:
Andrea Turli 2011-11-16 15:44:54 +00:00
parent c1e01901d6
commit 025948ae76
1 changed files with 2 additions and 2 deletions

View File

@ -64,9 +64,9 @@ public class TakeSnapshotIfNotAlreadyAttached implements Function<IMachine, ISna
session = manager.openMachineSession(machine);
IProgress progress = session.getConsole().takeSnapshot(snapshotName, snapshotDesc);
if (progress.getCompleted())
logger.debug("Clone done with snapshot name: %s and descripton: %s", snapshotName, snapshotDesc);
logger.debug("Snapshot %s (description: %s) taken from %s", snapshotName, snapshotDesc, machine.getName());
} catch (Exception e) {
logger.error(e.getMessage());
logger.error(e, "Problem creating snapshot %s (descripton: %s) from machine %s", snapshotName, snapshotDesc, machine.getName());
propogate(e);
} finally {
session.unlockMachine();