Skip to content

Commit

Permalink
Additional logging to diagnose #21
Browse files Browse the repository at this point in the history
  • Loading branch information
hirak99 committed Nov 5, 2023
1 parent 1c79f63 commit b89df43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/code/snap_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def _apply_deletion_rules(self, snaps: Iterable[snap_holder.Snapshot]) -> bool:
def _create_and_maintain_n_backups(
self, count: int, trigger: str, comment: Optional[str]
):
logging.info(f"Maintain {count} volumes of type {trigger}.")
if not os_utils.is_btrfs_volume(self._config.source):
logging.warning(f"Not a btrfs volume {self._config.source}.")
return
# Find previous snaps.
# Doing this before the update handles dryrun (where no new snap is created).
Expand Down

0 comments on commit b89df43

Please sign in to comment.