Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
add some debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed May 30, 2024
1 parent b72d7f2 commit a3be86d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functions/backup_restore/backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def backup_all(self):
failures[app_name].append(snapshot_result["message"])
continue

# Read configuration settings
config_file_path = str(Path(__file__).parent.parent.parent.parent / 'config.ini')
config = ConfigObj(config_file_path, encoding='utf-8', list_values=False)

Expand All @@ -189,8 +190,14 @@ def size_str_to_bytes(size_str):

max_stream_size_bytes = size_str_to_bytes(max_stream_size_str)

self.logger.debug(f"backup_snapshot_streams: {backup_snapshot_streams}")
self.logger.debug(f"max_stream_size_str: {max_stream_size_str}")
self.logger.debug(f"max_stream_size_bytes: {max_stream_size_bytes}")

if backup_snapshot_streams:
snapshot_refer_size = self.snapshot_manager.get_snapshot_refer_size(snapshot_name)
self.logger.debug(f"snapshot_refer_size: {snapshot_refer_size}")

if snapshot_refer_size <= max_stream_size_bytes:
# Send the snapshot to the backup directory
self.logger.info(f"Sending snapshot stream to backup file...")
Expand Down

0 comments on commit a3be86d

Please sign in to comment.