very much reduce logging noise

This commit is contained in:
2024-01-12 21:11:21 -05:00
parent 9f1e283c70
commit ed69f0c6f1
3 changed files with 40 additions and 151 deletions

View File

@@ -43,6 +43,11 @@ func main() {
s := &tsnet.Server{
Dir: "/.config/" + hostname,
Hostname: hostname,
Logf: func(s string, a ...any) { // silence most tsnet logs
if strings.HasPrefix(s, "To start this tsnet server") {
log.Printf(s, a...)
}
},
}
defer s.Close()