def run_forever(rfh, wfh, options, cf):
v = VendingMachine(rfh, wfh)
- logging.debug('PING is', v.ping())
+ logging.debug('PING is ' + str(v.ping()))
if USE_DB: db = DispenseDatabase(v, cf.DBServer, cf.DBName, cf.DBUser, cf.DBPassword)
cur_user = ''
options, config_opts = set_stuff_up()
while True:
try:
- logging.info('Starting Vend Server')
+ logging.warning('Starting Vend Server')
do_vend_server(options, config_opts)
- logging.warning('Vend Server finished unexpectedly, restarting')
+ logging.error('Vend Server finished unexpectedly, restarting')
except KeyboardInterrupt:
logging.info("Killed by signal, cleaning up")
clean_up_nicely(options, config_opts)
- logging.info("Vend Server stopped")
+ logging.warning("Vend Server stopped")
break
except:
(exc_type, exc_value, exc_traceback) = sys.exc_info()