log output format tweak

This commit is contained in:
B.J. Dweck 2021-02-03 12:26:28 +02:00
parent 37902a3bcc
commit ab1434b7a5

View File

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