bisync: clarify file operation directions in dry-run logs - fixes #7029

Before this change, NOTICE log messages during bisync dry runs were unclear as
to the direction of the skipped operation (Path1 to 2 vs. 2 to 1.) This change
adjusts the cmd/bisync/log.go indent function to be more expressive about
direction.
This commit is contained in:
Kyle Reynolds
2024-03-06 07:26:53 -07:00
committed by GitHub
parent effad3fe4b
commit dcdbad3554
3 changed files with 32 additions and 28 deletions

View File

@ -29,6 +29,10 @@ func (b *bisyncRun) indent(tag, file, msg string) {
logf = fs.Logf
}
if b.opt.DryRun {
logf = fs.Logf
}
if tag == "Path1" {
tag = Color(terminal.CyanFg, "Path1")
} else {