Add version number to ntfy serve output

This commit is contained in:
Philipp Heckel 2022-06-12 11:54:58 -04:00
parent eb2262d06e
commit cf0f002bfa
8 changed files with 703 additions and 591 deletions

View file

@ -180,7 +180,7 @@ func (s *Server) Run() error {
if s.config.SMTPServerListen != "" {
listenStr += fmt.Sprintf(" %s[smtp]", s.config.SMTPServerListen)
}
log.Info("Listening on%s, log level is %s", listenStr, log.CurrentLevel().String())
log.Info("Listening on%s, ntfy %s, log level is %s", listenStr, s.config.Version, log.CurrentLevel().String())
mux := http.NewServeMux()
mux.HandleFunc("/", s.handle)
errChan := make(chan error)