Shorten NATS error messages

This commit is contained in:
Søren Rasmussen 2022-07-26 12:59:17 +02:00
parent 8766932739
commit 308019b039
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ func mainLoop(ctx context.Context, wg *sync.WaitGroup, js nats.JetStream, config
_, err = js.Publish(config.NATS.Subject.Event, b)
if err != nil {
hub.CaptureException(err)
log.Printf("Error publishing to NATS: %v", err)
log.Print(err)
}
case state := <-ctrl.C:

View file

@ -95,7 +95,7 @@ func publish(subject string, js nats.JetStream, hub *sentry.Hub, reading any) er
_, err = js.Publish(subject, b)
if err != nil {
hub.CaptureException(err)
log.Printf("Error publishing to NATS: %v", err)
log.Print(err)
}
return err