fix logging of snapshot errors
This commit is contained in:
parent
1290623456
commit
b0758a6b8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user