Change a log.error to a log.exception

This commit is contained in:
Raoul Snyman 2018-01-04 14:13:24 -07:00
parent 0601cf1543
commit 2d009f1884
2 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class WebSocketServer(RegistryProperties, LogMixin):
log.debug("Web Socket Server started for class {address} {port}".format(address=address, port=port))
break
except Exception as e:
log.error('Failed to start ws server {why}'.format(why=e))
log.exception('Failed to start ws server {why}'.format(why=e))
loop += 1
time.sleep(0.1)

View File

@ -558,6 +558,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
wait_dialog.setCancelButton(None)
wait_dialog.show()
for thread_name in self.threads.keys():
log.debug('Waiting for thread %s', thread_name)
self.application.processEvents()
thread = self.threads[thread_name]['thread']
worker = self.threads[thread_name]['worker']