diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-21 15:51:04 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-21 15:51:04 -0400 |
commit | e2c556d18c25cbec876d331c06695a9d3367182b (patch) | |
tree | 421f3f018883a7898d9fda8fe5a531ee6da74c19 | |
parent | 0041ce2d60b6014591b4245773556c99f08a29ff (diff) | |
download | Atlas-e2c556d18c25cbec876d331c06695a9d3367182b.tar.gz Atlas-e2c556d18c25cbec876d331c06695a9d3367182b.zip |
pkg/atlas: Use info for all http logs
To better match the old master server's behavior.
-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) } |