(format string, a ...any)
| 1092 | } |
| 1093 | |
| 1094 | func (s *Server) logf(format string, a ...any) { |
| 1095 | if s.logtail != nil { |
| 1096 | s.logtail.Logf(format, a...) |
| 1097 | } |
| 1098 | if s.UserLogf != nil { |
| 1099 | s.UserLogf(format, a...) |
| 1100 | return |
| 1101 | } |
| 1102 | log.Printf(format, a...) |
| 1103 | } |
| 1104 | |
| 1105 | // printAuthURLLoop loops once every few seconds while the server is still running and |
| 1106 | // is in NeedsLogin state, printing out the auth URL. |