improve logs for PITR
Add count of all and remaining binlogs to restore logs
@@ -258,8 +258,9 @@ func (r *Recoverer) recover() (err error) {
if err != nil {
return errors.Wrap(err, "drop collector funcs")
}
- for _, binlog := range r.binlogs {
- log.Println("working with", binlog)
+ for i, binlog := range r.binlogs {
+ remaining := len(r.binlogs) - i
+ log.Printf("working with %s, %d out of %d remaining\n", binlog, remaining, len(r.binlogs))
if r.recoverType == Date {
binlogArr := strings.Split(binlog, "_")
if len(binlogArr) < 2 {
