diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2025-12-08 17:23:38 +0000 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-12-08 17:23:38 +0000 |
| commit | 368a8abb3156716c91e9e8989c089ad75c4e56aa (patch) | |
| tree | 9526c780068c86c08d243861f5331f2f071a481f /autoBackup | |
| parent | 677a021d1e7351f10fe41de98e2d5d5148f9b920 (diff) | |
| download | BetterZFSReplication-368a8abb3156716c91e9e8989c089ad75c4e56aa.tar.gz BetterZFSReplication-368a8abb3156716c91e9e8989c089ad75c4e56aa.zip | |
Made less verbose
Diffstat (limited to 'autoBackup')
| -rw-r--r-- | autoBackup/autoBackup.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/autoBackup/autoBackup.py b/autoBackup/autoBackup.py index 669e808..9d1a3f1 100644 --- a/autoBackup/autoBackup.py +++ b/autoBackup/autoBackup.py @@ -62,7 +62,7 @@ class TrueNASWebsocketsClient(truenas_api_client.JSONRPCClient): def __exit__(self, *args, **kwargs): super().__exit__(*args, **kwargs) - logging.info("%s Websocket disconnected" % self.host) + # logging.info("%s Websocket disconnected" % self.host) def _get_job_serialized_name(self, job_type): return os.path.join(os.path.dirname(__file__), ".%s_%s_jobs.pickle" % (self.host, job_type)) @@ -302,7 +302,7 @@ def main(): else: tasks = [] - logging.info("Began autoBackup procedure") + logging.info("\n\nBegan autoBackup procedure") m = get_mqtt() logging.info("Slave plug '%s' is currently %s" % (m.friendlyname, m.switch_power)) if m.switch_power == "ON": @@ -348,7 +348,8 @@ def main(): password = os.environ["SLAVE_PASSWORD"], replication_task_names = tasks ) as slave: - logging.info(json.dumps(slave.shutdown(), indent = 4)) + slave.shutdown() + # logging.info(json.dumps(slave.shutdown(), indent = 4)) # wait until the slave TrueNAS is using 0w of power, which implies it has finished shutting down, # then turn off the power to it @@ -356,7 +357,7 @@ def main(): get_mqtt("OFF") logging.info("Turned off the slave's plug") - logging.info("autoBackup backup procedure completed. Took %s\n\n" % str(datetime.datetime.now() - start_time)) + logging.info("autoBackup backup procedure completed. Took %s" % str(datetime.datetime.now() - start_time)) if __name__ == "__main__": main() |
