diff --git a/backend/main.py b/backend/main.py index a0fffeb32211eabf2f5d1cca79ec8a7c9e41fed3..f032842e25b4dd37fc9f35cf62ad3ac04a5b4017 100755 --- a/backend/main.py +++ b/backend/main.py @@ -49,7 +49,6 @@ def _update_loop(socket_io: socketio.Server) -> None: # If the update fails, just ignore it and try another time. try: payload_dict: dict = cluster.update() - # payload_dict: dict = {} socket_io.emit( event='update', @@ -61,7 +60,7 @@ def _update_loop(socket_io: socketio.Server) -> None: # Eventually wait before updating again if REFRESH_TIME > 0: - LOGGER.info("waiting %is before updating again", REFRESH_TIME) + LOGGER.debug("waiting %is before updating again", REFRESH_TIME) time.sleep(REFRESH_TIME) step_counter += 1 @@ -91,7 +90,7 @@ def callback_disconnect(*args) -> None: def main() -> None: - # Run the update loop that gets updates from the data fetcher. + # Run the update loop that queries cluster information socket_io.start_background_task( target=_update_loop, socket_io=socket_io