Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add hosts test before migrating a VM - adrien
[simgrid.git] / src / bindings / java / org / simgrid / msg / VM.java
index c25f3b7..ac8a512 100644 (file)
@@ -156,11 +156,9 @@ public class VM extends Host{
         */     
        public void migrate(Host destination) throws HostFailureException{
                try {
-                       Msg.info("Migrate begins");
                        this.internalmig(destination);
-                       Msg.info("Migrate ends");
                } catch (Exception e){
-                 Msg.info("an exception occurs during the migration of VM "+this.getName());
+                 Msg.info("Migration of VM "+this.getName()+" to "+destination.getName()+" is impossible ("+e.getMessage()+")");
                  throw new HostFailureException();
                }
                // If the migration correcly returned, then we should change the currentHost value.