Skip to content
Prev Previous commit
Next Next commit
log only if not equal
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
  • Loading branch information
kaovilai committed Feb 20, 2025
commit 92617d07c57faef89eef936f52d8f62d99e0f2b4
4 changes: 3 additions & 1 deletion pkg/repository/udmrepo/kopialib/lib_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,9 @@ func writeInitParameters(ctx context.Context, repoOption udmrepo.RepoOptions, lo
default:
return errors.Errorf("invalid full maintenance interval option %s", fullMaintIntervalOption)
}
logger.Infof("Full maintenance interval change from %v to %v", priorMaintInterval, p.FullCycle.Interval)
if priorMaintInterval != p.FullCycle.Interval {
logger.Infof("Full maintenance interval change from %v to %v", priorMaintInterval, p.FullCycle.Interval)
}

p.Owner = r.ClientOptions().UsernameAtHost()

Expand Down