log output format tweak

master
B.J. Dweck 2021-02-03 12:26:28 +02:00
parent 37902a3bcc
commit ab1434b7a5
1 changed files with 5 additions and 5 deletions

View File

@ -83,17 +83,17 @@ class SyncthingMonitor:
# noinspection PyUnusedLocal
def update_devices(self, event):
print("*** Updating syncthing based on change to cluster info ***", flush=True)
print("Obtaining updated device list...", flush=True)
print("Updating syncthing based on change to cluster info...", flush=True)
print("--> Obtaining updated device list...", flush=True)
device_list = self.etcd.get_device_list()
print("Adding new devices to syncthing...", flush=True)
print("--> Adding new devices to syncthing...", flush=True)
self.syncthing.add_devices(device_list)
print("Updating shared folder with new devices...", flush=True)
print("--> Updating shared folder with new devices...", flush=True)
self.syncthing.create_shared_folder(SHARED_FOLDER_ID, SHARED_FOLDER_LABEL, self.syncthing_data_path,
device_list)
self.syncthing.sync_config()
self.syncthing.print_config()
print("*** Update complete ***", flush=True)
print("--> Update completed successfully!", flush=True)
if __name__ == "__main__":