Skip to content

Commit

Permalink
misc: log levels
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed Nov 2, 2024
1 parent 8eaea44 commit 5960be3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion v3/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func AppMain(f *AppFlags) int {
continue
}
_, _ = sd.Notify(sd.Ready)
slog.Notice("config successfully reloaded")
}

slog.Notice("server stop")
Expand Down
3 changes: 2 additions & 1 deletion v3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions v3/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
}

Expand Down

0 comments on commit 5960be3

Please sign in to comment.