[TPG] Increased serial timeout to account for vend time
[uccvend-vendserver.git] / sql-edition / servers / VendServer.py
index 2259108..ce75837 100755 (executable)
@@ -1091,8 +1091,9 @@ def do_vend_server(options, config_opts):
                
                try:
                        run_forever(rfh, wfh, options, config_opts)
                
                try:
                        run_forever(rfh, wfh, options, config_opts)
-               except VendingException:
+               except VendingException as e:
                        logging.error("Connection died, trying again...")
                        logging.error("Connection died, trying again...")
+                       logging.info("Exception: "+e.__str__())
                        logging.info("Trying again in 5 seconds.")
                        sleep(5)
 
                        logging.info("Trying again in 5 seconds.")
                        sleep(5)
 

UCC git Repository :: git.ucc.asn.au