From 18435e0f020fd4cfee7f4b3136b42866f52a13f4 Mon Sep 17 00:00:00 2001 From: kemvl Date: Fri, 29 Mar 2024 12:47:20 +0500 Subject: [PATCH] proper logs are added --- internal/infrastructure/smpp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/infrastructure/smpp.go b/internal/infrastructure/smpp.go index 679b24b..bf3bd98 100644 --- a/internal/infrastructure/smpp.go +++ b/internal/infrastructure/smpp.go @@ -39,9 +39,11 @@ func NewSMPPClient(cfg *config.Config) (*SMPPClient, error) { status := <-connStatus if status.Status() == smpp.Connected { logger.InfoLogger.Info("Connected to SMPP server.") + slog.Info("Connected to SMPP server.") break } else { logger.ErrorLogger.Error("Failed to connect:", status.Error()) + slog.Error("Failed to establish OTP connection:", status.Error()) logger.InfoLogger.Info("Retrying in 5 seconds...") time.Sleep(5 * time.Second) // Wait for 5 seconds before retrying }