mirror of https://github.com/apache/jclouds.git
issue 384: improved log messages in TakeSnapshotIfNotAlreadyAttached
This commit is contained in:
parent
c1e01901d6
commit
025948ae76
|
@ -64,9 +64,9 @@ public class TakeSnapshotIfNotAlreadyAttached implements Function<IMachine, ISna
|
||||||
session = manager.openMachineSession(machine);
|
session = manager.openMachineSession(machine);
|
||||||
IProgress progress = session.getConsole().takeSnapshot(snapshotName, snapshotDesc);
|
IProgress progress = session.getConsole().takeSnapshot(snapshotName, snapshotDesc);
|
||||||
if (progress.getCompleted())
|
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) {
|
} 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);
|
propogate(e);
|
||||||
} finally {
|
} finally {
|
||||||
session.unlockMachine();
|
session.unlockMachine();
|
||||||
|
|
Loading…
Reference in New Issue