mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-04 08:34:03 +00:00
api: backup: include previous snapshot name in log message
Extends the log messages written to the server's backup worker task log to include the snapshot name which is used as previous snapshot. This information facilitates debugging efforts, as the previous snapshot might have been pruned since. For example, instead of ``` download 'index.json.blob' from previous backup. register chunks in 'drive-scsi0.img.fidx' from previous backup. download 'drive-scsi0.img.fidx' from previous backup. ``` this now logs ``` download 'index.json.blob' from previous backup 'vm/101/2025-04-15T09:02:10Z'. register chunks in 'drive-scsi0.img.fidx' from previous backup 'vm/101/2025-04-15T09:02:10Z'. download 'drive-scsi0.img.fidx' from previous backup 'vm/101/2025-04-15T09:02:10Z'. ``` Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
9247d57fdf
commit
4a022e1a3f
@ -853,8 +853,8 @@ fn download_previous(
|
||||
};
|
||||
if let Some(index) = index {
|
||||
env.log(format!(
|
||||
"register chunks in '{}' from previous backup.",
|
||||
archive_name
|
||||
"register chunks in '{archive_name}' from previous backup '{}'.",
|
||||
last_backup.backup_dir.dir(),
|
||||
));
|
||||
|
||||
for pos in 0..index.index_count() {
|
||||
@ -865,7 +865,10 @@ fn download_previous(
|
||||
}
|
||||
}
|
||||
|
||||
env.log(format!("download '{}' from previous backup.", archive_name));
|
||||
env.log(format!(
|
||||
"download '{archive_name}' from previous backup '{}'.",
|
||||
last_backup.backup_dir.dir(),
|
||||
));
|
||||
crate::api2::helpers::create_download_response(path).await
|
||||
}
|
||||
.boxed()
|
||||
|
Loading…
Reference in New Issue
Block a user