Merge pull request #4176 from LXGaming/fix/impostor
Fix scan_finished JSON MessageType
This commit is contained in:
commit
7c8a401d97
2 changed files with 8 additions and 1 deletions
7
changelog/unreleased/pull-4176
Normal file
7
changelog/unreleased/pull-4176
Normal file
|
@ -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
|
|
@ -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) {
|
func (b *JSONProgress) ReportTotal(item string, start time.Time, s archiver.ScanStats) {
|
||||||
if b.v >= 2 {
|
if b.v >= 2 {
|
||||||
b.print(verboseUpdate{
|
b.print(verboseUpdate{
|
||||||
MessageType: "status",
|
MessageType: "verbose_status",
|
||||||
Action: "scan_finished",
|
Action: "scan_finished",
|
||||||
Duration: time.Since(start).Seconds(),
|
Duration: time.Since(start).Seconds(),
|
||||||
DataSize: s.Bytes,
|
DataSize: s.Bytes,
|
||||||
|
|
Loading…
Reference in a new issue