diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-28 20:45:09 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-28 20:45:09 -0700 |
| commit | 0db54aa79140c6656f99a851f582c84a0de04233 (patch) | |
| tree | 7a4ef008938cfd93e4fe32c24e332f21116ef0c0 /hotline/server.go | |
| parent | 8fc43f8e53a60144f49b92a0c28b0c939a69d1c9 (diff) | |
Improve readability of client version in logs
Diffstat (limited to 'hotline/server.go')
| -rw-r--r-- | hotline/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/server.go b/hotline/server.go index 3a43c95..ab61e81 100644 --- a/hotline/server.go +++ b/hotline/server.go @@ -669,7 +669,7 @@ func (s *Server) handleNewConnection(ctx context.Context, rwc io.ReadWriteCloser if c.Version == nil || bytes.Equal(c.Version, nostalgiaVersion) { c.Agreed = true c.logger = c.logger.With("name", string(c.UserName)) - c.logger.Infow("Login successful", "clientVersion", fmt.Sprintf("%x", c.Version)) + c.logger.Infow("Login successful", "clientVersion", fmt.Sprintf("%v", func() int { i, _ := byteToInt(c.Version); return i }())) for _, t := range c.notifyOthers( *NewTransaction( |