nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16k stars 1.41k forks source link

Make 'accountName > streamName' logs consistent #6065

Closed MauriceVanVeen closed 3 weeks ago

MauriceVanVeen commented 3 weeks ago

When logging about streams or consumers, the order is always accountName > streamName > consumerName. For example:

s.Noticef("JetStream cluster new consumer leader for '%s > %s > %s'", ca.Client.serviceAccount(), streamName, consumerName)

This was not fully consistent everywhere, so updated the cases where it was flipped. (streamName > accountName)

Signed-off-by: Maurice van Veen github@mauricevanveen.com