log output format tweak
This commit is contained in:
		
							parent
							
								
									37902a3bcc
								
							
						
					
					
						commit
						ab1434b7a5
					
				|  | @ -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__": | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user