diff -r 40af8e328e64 -r 528be1e059aa cwctl.py --- a/cwctl.py Wed Aug 25 11:23:22 2010 +0200 +++ b/cwctl.py Wed Aug 25 13:45:41 2010 +0200 @@ -573,7 +573,7 @@ print '*'*72 if not ASK.confirm('%s instance %r ?' % (self.name, appid)): continue - StopInstanceCommand().stop_instance(appid) + StopInstanceCommand(self.logger).stop_instance(appid) forkcmd = [w for w in sys.argv if not w in args] forkcmd[1] = 'start' forkcmd = ' '.join(forkcmd) @@ -583,7 +583,7 @@ sys.exit(status) def restart_instance(self, appid): - StopInstanceCommand().stop_instance(appid) + StopInstanceCommand(self.logger).stop_instance(appid) self.start_instance(appid) @@ -742,7 +742,7 @@ print '-> migration needed from %s to %s for %s' % (fromversion, toversion, cube) # only stop once we're sure we have something to do if not (CWDEV or self.config.nostartstop): - StopInstanceCommand().stop_instance(appid) + StopInstanceCommand(self.logger).stop_instance(appid) # run cubicweb/componants migration scripts mih.migrate(vcconf, reversed(toupgrade), self.config) # rewrite main configuration file