From 4cbbf5d95249a23073cd60fc9a6e9bca1c567bc8 Mon Sep 17 00:00:00 2001 From: Alex Thomson Date: Fri, 27 Jan 2023 23:29:06 +1300 Subject: [PATCH 1/2] Fix scan_finished JSON MessageType Corrected the scan_finished JSON MessageType from status to verbose_status --- internal/ui/backup/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/backup/json.go b/internal/ui/backup/json.go index 85076b3bb..e736d0118 100644 --- a/internal/ui/backup/json.go +++ b/internal/ui/backup/json.go @@ -164,7 +164,7 @@ func (b *JSONProgress) CompleteItem(messageType, item string, previous, current func (b *JSONProgress) ReportTotal(item string, start time.Time, s archiver.ScanStats) { if b.v >= 2 { b.print(verboseUpdate{ - MessageType: "status", + MessageType: "verbose_status", Action: "scan_finished", Duration: time.Since(start).Seconds(), DataSize: s.Bytes, From 1b50faf03e04436188cc7b7700918c2db386b5b3 Mon Sep 17 00:00:00 2001 From: Alex Thomson Date: Fri, 27 Jan 2023 23:34:20 +1300 Subject: [PATCH 2/2] Add changelog --- changelog/unreleased/pull-4176 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 changelog/unreleased/pull-4176 diff --git a/changelog/unreleased/pull-4176 b/changelog/unreleased/pull-4176 new file mode 100644 index 000000000..8adf0b40f --- /dev/null +++ b/changelog/unreleased/pull-4176 @@ -0,0 +1,7 @@ +Change: Fix JSON message type of `scan_finished` for the `backup` command + +Restic incorrectly set the `message_type` of the `scan_finished` message to +`status` instead of `verbose_status`. This has now been corrected so that +the messages report the correct type. + +https://github.com/restic/restic/pull/4176