Skip to content

Commit 08da6ba

Browse files
committed
print restored log statement only with verbose enabled
When resolving links from an offline backup, this creates extra noise. Updates tailscale/corp#22700 Signed-off-by: Will Norris <[email protected]>
1 parent b8919b7 commit 08da6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

golink.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ func restoreLastSnapshot() error {
972972
}
973973
restored++
974974
}
975-
if restored > 0 {
975+
if restored > 0 && *verbose {
976976
log.Printf("Restored %v links.", restored)
977977
}
978978
return bs.Err()

0 commit comments

Comments
 (0)