Changeset 1820
- Timestamp:
- 11/07/07 18:14:08
- Files:
-
- trunk/cherrypy/restsrv/wspbus.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/restsrv/wspbus.py
r1816 r1820 142 142 if exc and e.code == 0: 143 143 e.code = 1 144 raise 144 raise 145 145 except: 146 146 self.log("Error in %r listener %r" % (channel, listener), … … 154 154 """Start all services.""" 155 155 self.state = states.STARTING 156 self.log('Bus starting')156 self.log('Bus STARTING') 157 157 try: 158 158 self.publish('start') 159 self.state = states.STARTED 160 self.log('Bus STARTED') 159 161 except (KeyboardInterrupt, SystemExit): 160 162 raise … … 169 171 self.log("Exception that caused shutdown: %s" % start_trace) 170 172 raise e_info[0], e_info[1], e_info[2] 171 172 self.state = states.STARTED173 173 174 174 def exit(self, status=0): … … 240 240 """Stop all services.""" 241 241 self.state = states.STOPPING 242 self.log('Bus stopping')242 self.log('Bus STOPPING') 243 243 self.publish('stop') 244 244 self.state = states.STOPPED 245 self.log('Bus STOPPED') 245 246 246 247 def start_with_callback(self, func, args=None, kwargs=None):

