diff options
Diffstat (limited to 'pkg/atlas/server.go')
-rw-r--r-- | pkg/atlas/server.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go index 2b5569f..44ba405 100644 --- a/pkg/atlas/server.go +++ b/pkg/atlas/server.go @@ -185,12 +185,7 @@ func NewServer(c *Config) (*Server, error) { } m.Add(hlog.AccessHandler(func(r *http.Request, status, size int, duration time.Duration) { - var e *zerolog.Event - if r.URL.Path == "/server/update_values" || r.URL.Path == "/server/heartbeat" || r.URL.Path == "/client/servers" { - e = s.Logger.Debug().Str("component", "http") - } else { - e = s.Logger.Info().Str("component", "http") - } + e := s.Logger.Info() if rid, ok := hlog.IDFromRequest(r); ok { e = e.Stringer("rid", rid) } |