From 342451db2581e9478fd99315a605af0db296ae4b Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 5 Feb 2026 14:16:30 +0100 Subject: [PATCH] publishing log --- tools/nats_caller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/nats_caller.go b/tools/nats_caller.go index 2e477c9..94c23ba 100644 --- a/tools/nats_caller.go +++ b/tools/nats_caller.go @@ -116,9 +116,11 @@ func (o *natsCaller) SetNATSPub(method NATSMethod, data NATSResponse) string { } err = nc.Publish(method.GenerateKey(), js) // Publish the message on the NATS server with a channel name based on the data name (or whatever start) and the method if err != nil { + fmt.Println("Publish Failed", err) time.Sleep(1 * time.Minute) continue } + fmt.Println("Published on", method.GenerateKey()) break } return ""