Add delay on logs download start for on screen messages

This commit is contained in:
Andrew 2022-01-18 13:16:09 -05:00
parent fefa6248b4
commit bda81b8e20
2 changed files with 3 additions and 1 deletions

View File

@ -134,6 +134,8 @@ class Controller:
def package_support_logs(self, exec_user):
#pausing so on screen notifications can run for user
time.sleep(7)
websocket_helper.broadcast_user(exec_user['user_id'], 'notification', 'Preparing your support logs')
tempDir = tempfile.mkdtemp()
tempZipStorage = tempfile.mkdtemp()

View File

@ -387,7 +387,7 @@ class Server:
if not self.check_running() and command.lower() != 'start':
logger.warning("Server not running, unable to send command \"{}\"".format(command))
return False
logger.debug("Sending command {} to server".format(command))
# send it