Skip to content

Commit

Permalink
compactor: fix error message of Revision compactor
Browse files Browse the repository at this point in the history
Reorder the parameters so that Noticef can output the error properly.
  • Loading branch information
Iwasaki Yudai authored and gyuho committed Dec 14, 2017
1 parent 04ec94f commit 0265457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compactor/compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (t *Periodic) Run() {
last = clock.Now()
plog.Noticef("Finished auto-compaction at revision %d", rev)
} else {
plog.Noticef("Failed auto-compaction at revision %d (%v)", err, rev)
plog.Noticef("Failed auto-compaction at revision %d (%v)", rev, err)
plog.Noticef("Retry after %v", checkCompactionInterval)
}
}
Expand Down

0 comments on commit 0265457

Please sign in to comment.