log more stuff
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 21 Jan 2010 15:14:02 +0000 (15:14 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 21 Jan 2010 15:14:02 +0000 (15:14 +0000)
python/vserver.py

index 569b979..59b3530 100644 (file)
@@ -301,7 +301,7 @@ class VServer:
             try:
                 vserverimpl.unsetdlimit(self.dir, self.ctx)
             except OSError, e:
-                self.log("Unexpected error with unsetdlimit for context %d" % self.ctx)
+                self.log("Unexpected error with unsetdlimit for context %d -- %r" % (self.ctx,e))
             return
 
         if self.vm_running:
@@ -501,6 +501,8 @@ class VServer:
                         if os.path.isfile(cmd[0]):                         
                             print >>log, "executing '%s'" % " ".join(cmd_args)
                             os.spawnvp(os.P_NOWAIT,cmd[0],cmd_args)
+                        else:
+                            print >>log, "WARNING: could not run %s"%cmd[0]
                     except:
                         print >>log, traceback.format_exc()