Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
use a stable attribute order
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Aug 31, 2024
1 parent c21527f commit 9d35ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (s *Server) adaptor(kvs ...interface{}) error {
level = fmt.Sprint(val)
}
var args []any
for _, e := range maps.Entries(fields) {
for _, e := range maps.SortedEntries(fields) {
args = append(args, e.Key, e.Val)
}
ll := s.logger.With(args...)
Expand Down

0 comments on commit 9d35ef7

Please sign in to comment.