From b0758a6b8b937197b21029ce7f8d87135464a07d Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Tue, 25 May 2021 17:44:07 +0200 Subject: [PATCH] fix logging of snapshot errors --- bin/zsnapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/zsnapper b/bin/zsnapper index d557461..6736326 100644 --- a/bin/zsnapper +++ b/bin/zsnapper @@ -369,9 +369,9 @@ def main(): try: if remote in remote_snapshots: remote_snapshots[remote] = zsnaplib.get_snapshots(zfs_cmd) - except zsnaplib.ZFSSnapshotError: + except zsnaplib.ZFSSnapshotError as e: del remote_snapshots[remote] - log.warning("Could not refresh snapshots on {}".format(remote)) + log.warning("Could not refresh snapshots on {}: {}".format(remote, e)) snapshots = zsnaplib.get_snapshots(local_zfs_cmd) failed_send = send_snapshots(fslist, snapshots, config)