diff --git a/v3/app.go b/v3/app.go index 5dc0d84..d3f4285 100644 --- a/v3/app.go +++ b/v3/app.go @@ -117,7 +117,6 @@ func AppMain(f *AppFlags) int { continue } _, _ = sd.Notify(sd.Ready) - slog.Notice("config successfully reloaded") } slog.Notice("server stop") diff --git a/v3/server.go b/v3/server.go index f7cca90..d31ff40 100644 --- a/v3/server.go +++ b/v3/server.go @@ -375,7 +375,8 @@ func (s *Server) LoadConfig(cfg *config.File) error { s.cfg = cfg s.tlscfg = tlscfg }() - s.recentEvents.Add(time.Now(), "config reloaded") + s.recentEvents.Add(time.Now(), "config loaded") + slog.Notice("config loaded") return nil } diff --git a/v3/tunnel.go b/v3/tunnel.go index f50977f..5f0ada4 100644 --- a/v3/tunnel.go +++ b/v3/tunnel.go @@ -171,7 +171,7 @@ func (t *tunnel) run() { func (t *tunnel) addMux(mux *yamux.Session, tag string) { now := time.Now() msg := fmt.Sprintf("%s: session established", tag) - slog.Info(msg) + slog.Notice(msg) t.s.recentEvents.Add(now, msg) t.mu.Lock() @@ -196,7 +196,7 @@ func (t *tunnel) delMux(mux *yamux.Session) { return tag, ok }(); ok { msg := fmt.Sprintf("%s: session closed", tag) - slog.Info(msg) + slog.Notice(msg) t.s.recentEvents.Add(now, msg) }