Skip to content

Commit

Permalink
print restored log statement only with verbose enabled
Browse files Browse the repository at this point in the history
When resolving links from an offline backup, this creates extra noise.

Updates tailscale/corp#22700

Signed-off-by: Will Norris <will@tailscale.com>
  • Loading branch information
willnorris committed Aug 27, 2024
1 parent b8919b7 commit 08da6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golink.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ func restoreLastSnapshot() error {
}
restored++
}
if restored > 0 {
if restored > 0 && *verbose {
log.Printf("Restored %v links.", restored)
}
return bs.Err()
Expand Down

0 comments on commit 08da6ba

Please sign in to comment.